A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Are URL parameters (GET) not resent when you do a response.sendRedirect()?
Joined: Dec 04, 2007
Oct 14, 2009 06:52:42
Is this right? The URL parameters (GET) are not resent to the new resource?
's doGet()-method. There I do a
The second call from my browser is then
, without the ?param01=helloworld parameter.
Is this right? And why is this?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Oct 14, 2009 07:03:59
Of course they are not. You are redirecting to a new URL - if you want it to have parameters you have to compose the URL that way.
Redirect causes a whole new request, old request is done.
Java Resources at
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Are URL parameters (GET) not resent when you do a response.sendRedirect()?
How to view image from server ???
Tomcat 404 Error - Still not working
passing value by hyperlink
Passing header parameters with the request
Trying to set http://localhost to load one tomcat project?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013