[OSGeo-Discuss] GeoRss and Spring MVC

snowb0y gavin at fnarg.net
Sat Apr 30 18:53:26 PDT 2011


hi all,

I'm would like to use GeoRss [1] in a Spring 3 web app. So far I've got
GeoRss running [2] and also a prototype Spring app based on
AbstractRssFeedView [3] which produces non-geo Rss. I'm using sample data
from Open Layers [4]. But I can't see how to convert GeoRss items which are
of type List<SyndEntry> [5] into the List<Item> [6] type that
AbstractRssFeedView expects. 

Writing a custom view (perhaps like this [7]) feels like it might be the
long-way round. Any ideas or should I just roll-up my sleeves and get on
with it (:

cheers,
snowb0y



[1]  http://georss.geonames.org/ http://georss.geonames.org/ 
[2]  http://snowb0y.wordpress.com/2011/04/24/using-georss/
http://snowb0y.wordpress.com/2011/04/24/using-georss/ 
[3] 
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/servlet/view/feed/AbstractRssFeedView.html
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/servlet/view/feed/AbstractRssFeedView.html 
[4]  http://www.openlayers.org/dev/examples/xml/track1.xml
http://www.openlayers.org/dev/examples/xml/track1.xml 
[5] 
http://www.jarvana.com/jarvana/view/net/java/dev/rome/rome/1.0.0/rome-1.0.0-javadoc.jar!/com/sun/syndication/feed/synd/SyndEntry.html
http://www.jarvana.com/jarvana/view/net/java/dev/rome/rome/1.0.0/rome-1.0.0-javadoc.jar!/com/sun/syndication/feed/synd/SyndEntry.html 
[6] 
http://www.jarvana.com/jarvana/view/net/java/dev/rome/rome/1.0.0/rome-1.0.0-javadoc.jar!/com/sun/syndication/feed/rss/Item.html
http://www.jarvana.com/jarvana/view/net/java/dev/rome/rome/1.0.0/rome-1.0.0-javadoc.jar!/com/sun/syndication/feed/rss/Item.html 
[7] 
http://www.zabada.com/technology/Wiki.jsp?page=WritingACustomViewRSSView
http://www.zabada.com/technology/Wiki.jsp?page=WritingACustomViewRSSView 

-----http://www.fnarg.net--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GeoRss-and-Spring-MVC-tp6320735p6320735.html
Sent from the OSGeo Discuss mailing list archive at Nabble.com.



More information about the Discuss mailing list