Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joe, On 9/8/16 3:40 PM, Joe Tseng wrote: > I inherited a clusterf*** of a mess disguised as a > JSP/servlet-based MVC-ish app without the benefit of using Spring > or Struts or any sort of framework. No web services, but lots of > $.ajax() POST

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Joe Tseng
I inherited a clusterf*** of a mess disguised as a JSP/servlet-based MVC-ish app without the benefit of using Spring or Struts or any sort of framework. No web services, but lots of $.ajax() POST calls to servlet methods. I need to get this stabilized before I can redo everything using

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joe, On 9/8/16 1:38 PM, Joe Tseng wrote: > FYI I'm using Tomcat v7.x. > > I guess I misunderstood what happens when I use sendRedirect() - it > sends a new request, not a new response - but the effect is the > same. That was what I came away with

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Joe Tseng
FYI I'm using Tomcat v7.x. I guess I misunderstood what happens when I use sendRedirect() - it sends a new request, not a new response - but the effect is the same. That was what I came away with when I read this: http://javarevisited.blogspot.com/2011/09/sendredirect-forward-jsp-servlet.html

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joe, On 9/6/16 3:36 PM, Joe Tseng wrote: > I inherited a codebase that calls > HttpServletResponse.sendRedirect() to another page after a user is > successfully logged in. I want to be able to insert a header value > before that redirection is

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Terence M. Bandoian
On 9/8/2016 4:47 AM, Terence M. Bandoian wrote: On 9/6/2016 2:36 PM, Joe Tseng wrote: All, I inherited a codebase that calls HttpServletResponse.sendRedirect() to another page after a user is successfully logged in. I want to be able to insert a header value before that redirection is

Header values when using HttpServletResponse.sendRedirect()

2016-09-06 Thread Joe Tseng
All, I inherited a codebase that calls HttpServletResponse.sendRedirect() to another page after a user is successfully logged in. I want to be able to insert a header value before that redirection is executed. I tried to simply add a HttpServletResponse.addHeader()/.setHeader() to the response