tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43757] - Improper parsing of response.sendRedirect() in JSP source
Date Thu, 01 Nov 2007 02:02:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43757>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43757


beefnog@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Additional Comments From beefnog@gmail.com  2007-10-31 19:02 -------
(In reply to comment #3)
> Look at the generated java a little closer.
> You'll notice after the commented code something like this: 
> out.println("\n")
> Because there is whitespace at the end of the file after the %>
> So if one tried to write AFTER a redirect is done - you get an ISE.
> You need
> if (someCondition) {
>   response.sendRedirect("./index.jsp");
>   return;
> }

You are correct, and I noted the cause (a little less verbosely) in my reply 
to Mark Thomas' response. However, the error generated does not properly 
indicate the line number that generated the error. That is what I'm driving at.

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

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


Mime
View raw message