On 4/21/2018 3:05 PM, Martin Gainty wrote:
> i could'nt find it in servlet-api spec?
> 
> https://tomcat.apache.org/tomcat-8.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html
> 
> HttpServletResponse (Servlet 3.1 API Documentation 
> ...<https://tomcat.apache.org/tomcat-8.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html>
> tomcat.apache.org
> Extends the ServletResponse interface to provide HTTP-specific functionality 
> in sending a response. For example, it has methods to access HTTP headers and 
> cookies. The servlet container creates an HttpServletResponse object and 
> passes it as an argument to the servlet's service methods (doGet, doPost, 
> etc).
> 
> i did find sendLocalRedirect method in ATG Dynamo HttpServletResponse
> https://docs.oracle.com/cd/E23095_01/Platform.93/ATGProgGuide/html/s0803httpservletresponse01.html
> HttpServletResponse - 
> Oracle<https://docs.oracle.com/cd/E23095_01/Platform.93/ATGProgGuide/html/s0803httpservletresponse01.html>
> docs.oracle.com
> Set Response Codes. The response code for a request is a numeric value that 
> represents the status of the response. For example, 200 represents a 
> successful response, 404 represents a file not found, and so on.
> 
> 
> 
> 
> i didnt know struts2 supported ATG Dynamo sendLocalRedirect

I found something at [1]. Following is it's copied answer:

"For the redirected request to come back and attach to the same session,
it needs a session ID, usually carried in a JSESSIONID (or another name)
cookie or in the URL as a parameter.

This cookie or URL parameter should be added by the servlet container
and you should not have to add it yourself.

If you do not see the cookie in your browser, and you are not attaching
the JSESSIONID to the URL, then it is creating a new session with each
request, and not attaching to the same session."

Regards.

[1] https://stackoverflow.com/a/13462878/1362623

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to