Tomcat V4.0.1...

In Tomcat V4.0.1 (and maybe others), if you attempted to put a <jsp:include … flush=“true”> directive inside a jsp page that already contains custom tags (e.g. bdm:module tags), you will get an exception from Tomcat at runtime:
“Illegal to flush within
a custom tag at org.apache.jasper.runtime.PageContextImpl.handlePageException”

This problem is fixed in Tomcat V4.0.2.

HTH.