users@glassfish.java.net

Re: Rewriting URLs to change servlets?

From: Robin Sheat <robin_at_kallisti.net.nz>
Date: Wed, 8 Aug 2007 13:39:36 +1200

On Wednesday 08 August 2007 07:59:56 Jan.Luehe_at_sun.com wrote:
> have you tried wrapping the request in your filter, in such a way
> that the request wrapper overrides the relevant request path methods to
> perform the manipulations you want?
That was what I tried initially, but it turned out that I wrapped the wrong
things (HttpServletRequest is huge and ugly, and it's easy to miss things :).
Altering getServletPath() seems to work, according to a quick test I did.

Thanks,
-- 
Robin <robin_at_kallisti.net.nz> JabberID: <eythian_at_jabber.kallisti.net.nz>
Hostes alienigeni me abduxerunt. Qui annus est?
PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D