Managing paramenters while redirecting through repsonse.sendRedirect()

hi,

I want to redirect to a page and also want to set some parameters which will be sent to the redirecting page. If i use a form then parameters can be set using forms and hidden fields. But when i redirect to some page using response.sendRedirect(Location) i couldnt find any message such as response.setParameter(name,value). How to set parameters while redirecting a page.

[389 byte] By [.@_a] at [2007-10-2 20:10:33]
# 1

When a browser receives a redirect command, it issues a 'GET' request to the url specified in the redirect header. The only way you can send parameters is to append query strings to your redirect url.

example.

response.sendRedirect("redirectURL?param1=value&param2=value");

ram.

Madathil_Prasada at 2007-7-13 22:51:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
cant it be done using POST request? I want it to be redirected using post requests...Parameters should not be shown in the destination URL
.@_a at 2007-7-13 22:51:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
As far as I know, the answer is no. Its the browser which performs the redirect and by default it uses the 'GET' method.ram.
Madathil_Prasada at 2007-7-13 22:51:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...