I had a weird problem today. I have a head.jsp ( ending with out.flush ) which is being included by other pages. most of the pages doesn't have problem with this out.flush(); but one of my page is failing with IllegalStateException on jboss 4.2.2 GA.
I checked the related java file ResponseFacade.java I think. And see that problem occurs because of if (isCommitted) check.
I just removed the include statement from my problemmatic page and it is working now. But the question is; why the other pages does not have problem with this page while the only one page has ?
or if a jsp file is being included by other pages. do I need to out.flush() in this included pages ?