You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/10 08:59:29 UTC

DO NOT REPLY [Bug 16921] New: - flushes on JSP 1.2+ container

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16921

<tiles:insert> flushes on JSP 1.2+ container

           Summary: <tiles:insert> flushes on JSP 1.2+ container
           Product: Struts
           Version: 1.1 Beta 3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Tiles framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: ndeloof@capgemini.fr


<tiles:insert> is using JSP include mecanism. In JSP 1.1, include MUST use
the flush mecanism : JSP buffer is flushed before include is done. That way it 
is not possible to use tiles:insert inside the body of another tag.

JSP 1.2 doesn't have this limitation : (JSP 1.2 spec p.17 : Relation to JSP 1.1)
"Fixing the infamous "flush before you include" limitation in JSP 1.1."

I suggest using 
javax.servlet.jsp.JspEngineInfo engineInfo =       
     JspFactory.getDefaultFactory().getEngineInfo(); 
in InsertTag to detect JSP container version and not do flush when it is not 
mandatory (JSP 1.2+), until "flush" attribute is set.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org