https://issues.apache.org/bugzilla/show_bug.cgi?id=51952

--- Comment #6 from Jess Holle <je...@ptc.com> 2011-10-05 14:41:46 UTC ---
If you look at the JSP source in question, it simply calls sendRedirect() in a
scriptlet.  The issue here is that the auto-generated JSP source, whitespace,
etc, will try to write more stuff after that call.

It would probably be more correct to do:
  response.sendRedirect(...);
  return;
in the scriptlet -- which may avoid the issue.

In any case this sort of attention to detail wasn't necessary prior to this
change, though, so there are bound to be existing JSP pages, servlets, etc,
where this sort of sloppiness exists.  Thus I believe we should endeavor to be
forgiving to such cases.

Also using an output stream rather than a writer won't solve the issue as I
believe the JSP page in question would then produce an exception *without* a
compression filter in place.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to