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.
subject: Are URL parameters (GET) not resent when you do a response.sendRedirect()?
Trying to set http://localhost to load one tomcat project?
Tomcat 404 Error - Still not working
Passing header parameters with the request
passing value by hyperlink
How to view image from server ???
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014