https://issues.apache.org/bugzilla/show_bug.cgi?id=53545
Priority: P2
Bug ID: 53545
Assignee: [email protected]
Summary: jsp:forward action to static resources causes
IllegalStateException when inside classic custom tag
Severity: major
Classification: Unclassified
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 7.0.28
Component: Servlet & JSP API
Product: Tomcat 7
If we have a JSP like the one below we get java.lang.IllegalStateException:
getOutputStream() has already been called for this response:
Notes:
1. the jsp:forward is inside classic custom tag ( extends BodyTagSupport).
2. if I put a dynamic resource everything is fine (ex. redirect.jsp)
3. I think that the response gets flushed if jsp:forward redirects to a static
resource and that's why the exception is trown.
test.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="t" uri="test" %>
<t:do>
<jsp:forward page="redirect.html"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
</t:do>
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]