Re: Servlets, send redirect and request scope



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
.



Relevant Pages

  • Re: Servlets, send redirect and request scope
    ... It is needed to do the redirect. ... servlet-A and getting request parameters/values from the request ... I could put all the keys/values in a session object and then ...
    (comp.lang.java.programmer)
  • Servlets, send redirect and request scope
    ... servlet-A and getting request parameters/values from the request ... If I have to put a redirect in between the form and A. The request ... I could put all the keys/values in a session object and then ...
    (comp.lang.java.programmer)
  • Re: Preventing Request.Form abuse
    ... I think I would redirect them to a large video file on one of the online ... also block their IP real time in the filter, so any future request from them ... If we were to use a real rather than a fictitious URL for the redirect, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to use HttpSessionState with SqlState
    ... deserialize Session Store to new Session Object ... End Request ... return to client ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HELP! - I need to setup a temporary IIS redirect while I fix SQL Injection vulnerabilities o
    ... Can I go a global redirect like this in IIS to prevent the request ... but it will NOT scan the Querystring. ... All it takes is a few encodings/permutations and ...
    (microsoft.public.inetserver.iis.security)