• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Struts 2 + RSS

 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Nishan Patel
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic