Reading rss feed using java (JSP Taglib)

We can read RSS (Real Simple Syndication) feeds and publish them on our web page using JSP(Java Server Pages) tag library. Sun provides a rss taglib that can be used in JSP. It is extremely simple to use. You just need to have basic knowledge of JSP and HTML.

So, how to do that? First you need to download the tag library file (rssutils.tld, rssutils.jar) from Sun’s website. Here is the url to download it. Put the files rssutils.tld and rssutils.jar in WEB-INF/lib directory of your web application.
After that, choose a blog or website who publishes its rss feeds to users, and get the url of its rss feed. In below example, I have used the rss feed url of this blog. Please find the attached file here and save it with .jsp extension (rssTest.jsp)
You can use tag also to read content in a loop.
For a small tutorial on rss taglib, go here

To know what RSS is, go here


  1. #1 by Ratnaprabha on August 27, 2012 - 6:19 PM

    Thanks it worked ! But i have a question… If we use RSS feed in our application is there any way to maintain my application’s session?

  2. #2 by Chirag Jain on August 29, 2012 - 8:10 PM

    Hi Ratna,
    Though I have not tried this in a live web app, session handling should not be any different from how it is done in any simple jsp. Can you tell me what specific issue you are facing?

Leave a Reply to Ratnaprabha Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: