RSS feed in JSP page

S

Steven

Hi All,

I'm not having much luck getting this to work as show in this tutorial :
http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/

This is my page code :
------------------------------
<%@ taglib uri="/WEB-INF/lib/rssutils.tld" prefix="rss" %>

<rss:feed
url="http://news.bbc.co.uk/rss/newsonline_uk_edition/world/rss091.xml"
feedId="javaSunCom"/>




<html>
<body>
<b>Image: </b>
<rss:channelImage feedId="example1" asLink="true"/><br>
<b>Title: </b>
<rss:channelTitle feedId="example1"/><br>
<b>Link: </b>
<rss:channelLink feedId="example1" asLink="true"/><br><b>Description:
</b>
<rss:channelDescription feedId="example1"/><br>

<ul>
<li><rss:itemTitle feedId="example1" index="0"/><br>
<rss:itemDescription feedId="example1" index="0"/><br><br>
<li><rss:itemTitle feedId="example1" index="1"/><br>
<rss:itemDescription feedId="example1" index="1"/><br>
</ul>

</body>
</html>
---------------------------

The page is placed in C:\Tomcat\webapps\ROOT\test\rss.jsp

In the directory :
C:\Tomcat\webapps\ROOT\WEB-INF\lib I have placed the files :
- rssutils.jar
- rssutils.tld

In C:\Tomcat\webapps\ROOT\WEB-INF\web.xml I have put this code :
--------------

<taglib>
<taglib-uri>/WEB-INF/lib/rssutils.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/rssutils.tld</taglib-location>
</taglib>
--------------

So I think I have done everything as said in the tutorial, but it doesn't
work.

Anybody got any idea what I could be doing wrong?

O yea, the thing that's not working is, is that there is no news showing.
I don't see any jsp error, so I think the taglib is correct

Thanks for any help!!
 
S

Steven

Got it working.

The code did not work on Tomcat 5.5.6, after downgrading to 5.5.4 it worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top