I have many JSPs with scriptlets so I need to use BodyTagSupport.
The problem is that inside the tag there is <jsp:forward ..> to a .htm page and I get this:
java.lang.IllegalStateException: getOutputStream() has already been
called for this response.
If I use a jsp everything is fine.
Do you have any idea why is this happening?
(I use Apache Tomcat as a server)
This was a Tomcat bug. It should be fixed from Tomcat 7.0.30 onwards.