Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Struts 2 + RSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 + RSS " Watch "Struts 2 + RSS " New topic
Author

Struts 2 + RSS

Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hello every one,

I am using Struts 2.0 and Hibernate.

Can any one please give me idea for RSS fedd.

I want to use it in my Auction site.When some one change status get message and updates.

how to make RSS dynamic.

Please give idea and explain how to do it dynamic.

Thanks,
Nishan Patel.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41116
    
  45
I don't really see how an RSS feed would involve a web framework like Struts.

Have a look at an existing feed like this one for one of our forums: http://faq.javaranch.com/RSS/Forum60.rss That's an RSS 2.0 feed, one of the more common formats (there are others formats like RSS 0.91, RSS 0.92, Atom and RDF if you want to cover all the bases). Most of fields are pretty self-explanatory. We keep this as an XML file on the server. It gets updated when there's a new item for that feed, using the XOM XML library; at the same time we check if it contains old items that should be deleted (which we do after 30 days, or sooner if the feed gets too big for the busy forums).

If you have a busy site you may want to implement this performance optimization in order to cut down on bandwidth: http://fishbowl.pastiche.org/2002/10/21/http_conditional_get_for_rss_hackers
[ October 20, 2008: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hello,

Yes that's true we use XML for RSS but i want to know how i get updated contains on XML.

So, i want to know is there any database table maintain for this RSS.

And i would i get updated contain and write it in XMl rss.

Please explain hole procedure for RSS.

Thanks,
Nishan Patel.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41116
    
  45
There's no database involved in generating and serving the feeds. As I said, they're XML files.

What you should avoid for performance reasons is to generate a feed whenever someone requests it. You should update the feed files whenever there are changes that need to be reflected in them (we use XOM for that, but any XML library will do).
Ravi Pandya
Greenhorn

Joined: Jun 07, 2007
Posts: 21
Nania.

You learn lot in Struts 2



[ UD: Removed non-English content. Please restrict yourself to English, or provide a translation. ]
[ October 21, 2008: Message edited by: Ulf Dittmer ]

Ravi Pandya
SCJP 5, SCWCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 + RSS
 
Similar Threads
multi-step user registration ?
to create dynamic textbox
to create dynamic textbox in struts
Confusing to choose best web application frameworks for learning ?
multi-step user registration ?