tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <Peter.Crowt...@melandra.com>
Subject RE: Wholesale HTTP parameter redirection
Date Wed, 16 Jul 2008 16:22:07 GMT
> From: Jonathan Mast [mailto:jhmast.developer@gmail.com]
> 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: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message