struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <>
Subject [jira] [Commented] (WW-3610) Newlines at the end of JSPs cause IllegalStateException
Date Wed, 20 Apr 2011 16:16:05 GMT


Dave Newton commented on WW-3610:

What does the code chunk do? I'm skeptical this is an S2 issue at this point, but would like
more info.

> Newlines at the end of JSPs cause IllegalStateException
> -------------------------------------------------------
>                 Key: WW-3610
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Dustin Digmann
> We created a new JSP recently.  It does not have a corresponding Action class, straight
JSP. This JSP was creating the following exception:
> java.lang.IllegalStateException: getOutputStream() has already been called for this response
> 	at org.apache.catalina.connector.Response.getWriter(
> 	at org.apache.catalina.connector.ResponseFacade.getWriter(
> 	at org.apache.jasper.runtime.JspWriterImpl.initOut(
> 	at org.apache.jasper.runtime.JspWriterImpl.flushBuffer( ...
> Users did not seem to be affected.  This was in the background.
> After the last "%>" within this JSP there was a newline.  Removing this newline removed
the exception.
> Can an update be made to ignore EOF newlines and whitespace?
> Note: I do not have a shareable example at this moment.  I might be able to put one together
upon request.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message