Hi,

I know this was asked a while ago in this mailing list, but I couldn't find the answer. My problem is that I want a generic way to get the client URL in my action class. In Tomcat 5.0, I was able to do so by calling request.getRequestURL(), but apparently I was just lucky, because it wasn't supposed to work this way and now that they have fixed it in Tomcat 5.5, my application breaks. I see some people solved this by using mapping.getPath(), but this doesn't work well with tiles, because it returns the action url of the tile and not the url of the client request.

So far I know how to get the scheme, host, context path, and query string, but I'm missing the path, which mapping.getPath() provides if you're not using tiles.

Anyone knows how to get this to work without having to use request.getRequestURL()?

Thanks,

--
Otmar Manuela


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to