Re: Servlets, send redirect and request scope



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

.



Relevant Pages

  • 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: 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)
  • Re: NetApp filers 3rd party API
    ... then I'd trigger operations based on this request ... and finally redirect the request back to the NetApp. ...
    (comp.arch.storage)
  • Re: jsps not serving from context root in netbeans server
    ... I was doing that anyway) but I must admit despite reading the API and ... this method can help with maintaining context root. ... My main points have to do with keeping the request and avoiding the round trip ... The leading '/' moves the redirect out of the context. ...
    (comp.lang.java.programmer)
  • Re: Regulation of the websites access
    ... The redirect feature functions exactly the same. ... When you specify the destination to which to redirect the request, ... ISA Server sends the URL specified here to the Web ... The client Web browser then tries to access the object from ...
    (microsoft.public.isa)