Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RSS feed in JSP page

843836Jan 19 2005 — edited Nov 20 2008
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!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2008
Added on Jan 19 2005
5 comments
382 views