Hi Alex Could you be missing to add contextpath when generating the url? http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/api/javax/servlet/http/HttpServletRequest.html#getContextPath()
If the app was previously deployed in 'ROOT' context then the contextpath was - well - empty. And now it's got a value to account for? Btw - Here's also an example of how to generate/reconstruct urls http://gabijack.com/reconstructing-original-request-url/ /magnus On Fri, Nov 15, 2013 at 8:39 PM, Alexander Sommer < alexander.som...@gmail.com> wrote: > Hi! > > I was moving my tapestry application on another server from domain to > domain/production, and now, my custom made sitemap viewer does not > generate appropriate urls anymore. (the normal tapestry page links are > working well - so the application in general is working well) > > but not my custom sitemapViewer page. The links which are generated > with writer.element("a", "href", "/" + item.getPage()); only generate > domain/url but not domain/production/url > > for sure, i could write now just "production" as prefix, but i have > also a test instance on tomcat on domain/test > > so maybe, the easiest approach would be to get the absolut url of > tapestry but the only thing i got so far was getting the url of > tapestry via request.getServerName but this also only is giving me the > servername (domain) but not domain/production/ > > writer.element("td"); > > writer.element("span", "style", "white-space:nowrap;"); > > writer.write(prefix); > > writer.element("a", "href", "/" + item.getPage()); > > writer.write( messages.get(item.getPage()) ); > > writer.end(); > > writer.end(); > > > thx > alex > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >