-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 11/23/2009 10:57 AM, André Warnier wrote:
> The first hurdle is that the HttpRequest is
> immutable, so you can't just change its URL and let the call through to
> the servlet(s).  You have to subclass, or wrap, the original request,
> and then pass that wrapper to the servlets instead.

Your best option is to use HttpServletRequestWrapper, which is a class
already defined in the Servlet API: it was built specifically for this
purpose.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksL6+EACgkQ9CaO5/Lv0PAKywCcCiLREaA9oRQKqX8YPsI+9anw
2mYAn3P37vQqYe4uI1lRy/5IgdwPNNzv
=z27r
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to