A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
I agree. Here's the link:
subject: Are URL parameters (GET) not resent when you do a response.sendRedirect()?
How to view image from server ???
passing value by hyperlink
Passing header parameters with the request
Trying to set http://localhost to load one tomcat project?
Tomcat 404 Error - Still not working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014