Re: Servlets, send redirect and request scope
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Wed, 30 Aug 2006 21:28:14 -0400
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: Berlin Brown
- Re: Servlets, send redirect and request scope
- References:
- Servlets, send redirect and request scope
- From: Berlin Brown
- Servlets, send redirect and request scope
- Prev by Date: Re: Configuration params for a webapp - best practice?
- Next by Date: Framework for import plain text files into databases
- Previous by thread: Servlets, send redirect and request scope
- Next by thread: Re: Servlets, send redirect and request scope
- Index(es):
Relevant Pages
|