delicious-jsp

I've just updated my blog to show my recent del.icio.us bookmarks and this was really easy to do, thanks to blojsom David's delicious-java API. All I needed to do was...

  1. Wrap up delicious-java inside a cache so that del.icio.us doesn't get hit every time somebody requests my site.
  2. Write a JSP tag that uses the cache, which can then be used as follows.

<delicious:posts var="deliciousPosts" username="****" password="****"/>
<b>del.icio.us</b>
<c:forEach var="post" items="${deliciousPosts}">
  <div>
  <a href="<c:out value="${post.href}"/>">
  <c:out value="${post.description}"/>
  </a><br />
  <c:out value="${post.extended}" /><br /><br />
  </div>
</c:forEach>

If anybody else would like to use this on their JSP powered blog, just leave a comment and I'll sort out a download.



Re: delicious-jsp

Give us a link to download the code. Thanks.

Re: delicious-jsp

Yes, definitely. I was thinking of doing the same thing myself... it just got much easier. :-) BTW, I recently upgraded to Pebble 1.8 and I'm lovin' it, especially the support for enclosures. Now if I can only get some time to start my podcast...

Re: delicious-jsp

1.change
 <delicious:posts var="deliciousPosts" username="****" password="****"/>

to
<delicious:recentPosts var="deliciousPosts" username="****" password="****"/>

2.unsupport unicode

Re: delicious-jsp

Give us a link to download the code. Thanks.

Re: delicious-jsp

Started playing with the delicious-java api, seems to just be tied per login, any ideas whether you can query all users using this?

Add a comment Send a TrackBack