Re: Servlets, send redirect and request scope
- From: "Berlin Brown" <berlin.brown@xxxxxxxxx>
- Date: 30 Aug 2006 19:23:02 -0700
Security reasons. It is needed to do the redirect.
Arne Vajhøj wrote:
Berlin Brown wrote:
In a typical (MVC1) application. You have a HTML-FORM posting to
servlet-A and getting request parameters/values from the request
object.
HTML-FORM ==> Servlet-A
If I have to put a redirect in between the form and A. The request
values are lost. Is there a generic way to restore those request
values. I could put all the keys/values in a session object and then
recollect the values in the servlet. But, I wish there was a generic
way that possibly avoided using the session object.
HTML-FORM ==> response?.sendRedirect ==> Servlet-A
Something like response.putRequestValue...
Why not use forward instead of redirect ?
(that will keep request info)
Arne
.
- Follow-Ups:
- Re: Servlets, send redirect and request scope
- From: Arne Vajhøj
- Re: Servlets, send redirect and request scope
- References:
- Servlets, send redirect and request scope
- From: Berlin Brown
- Re: Servlets, send redirect and request scope
- From: Arne Vajhøj
- Servlets, send redirect and request scope
- Prev by Date: Re: Running java programs from class files
- Next by Date: Re: Servlets, send redirect and request scope
- Previous by thread: Re: Servlets, send redirect and request scope
- Next by thread: Re: Servlets, send redirect and request scope
- Index(es):
Relevant Pages
|