tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <>
Subject RE: Wholesale HTTP parameter redirection
Date Wed, 16 Jul 2008 16:22:07 GMT
> From: Jonathan Mast []
> I have a page which now receives quite a few parameters, eg.
> page.jsp?abc=foo&xyz=bar ...
> This page redirects via response.sendRedirect().  I want to
> know how I can
> forward every parameter onto the redirect page, without
> having to extract
> each one individually and rebuilding them in the url I place into
> sendRedirect().

I've tended to use a swift bit of string manipulation - look for the ? in the original URL,
and append everything to the right of that.  Ugly, but it works.

                - Peter

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message