Another couple of options : 1. Assuming you're building with maven and you don't have an Index page at root, save sitemap.xml to src/main/webapp and maven will add it to the root of your war. Note that this file is considered read only one your app has started.
2. Use an index page. If the page activation context is sitemap.xml, return a textstreamresponse containing the sitemap (classpath?). On 3 Jun 2014 03:01, "George Christman" <[email protected]> wrote: > Hi guys, I'm trying to automatically generate my sitemaps and I'm having a > difficult time trying to figure out how to read/write to it. I currently > have it in the root of my class path, is this the correct location? If so, > how do I read/write to it? > > I'm using sitemapgen4j and this example > http://www.codingpedia.org/ama/generate-sitemaps-with-sitemapgen4j/ > > -- > George Christman > www.CarDaddy.com > P.O. Box 735 > Johnstown, New York >
