This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: delicious-jsp
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Simon Brown
Latest Posts From Simon Brown's weblog
Advertisement
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...
Wrap up delicious-java inside a cache so that del.icio.us doesn't get hit every time somebody requests my site.
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.
Read: delicious-jsp