> I'd probably try to generate this rather than manually reading / wiring from a database.
I meant to say : I'd probably try to generate this rather than manually reading / writing from a file. On 3 Jun 2014 07:13, "Lance Java" <[email protected]> wrote: > If it were me, I'd probably try to generate this rather than manually > reading / wiring from a database. > > A quick way to do that would be by contributing a request filter. This > could possibly return a file from the classpath when > request.getUri().equals("/sitemap.xml") > > Another option is to create a tapestry page for the sitemap, possibly > returning textstreamresponse from onActivate. You'd need a bit of wiring to > route sitemap.xml to the tapestry page since the URL contains a '.' > > 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 >> >
