You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/05/02 02:22:19 UTC

[jira] Closed: (STR-1191) flushes on JSP 1.2+ container

     [ http://issues.apache.org/struts/browse/STR-1191?page=all ]
     
David Evans closed STR-1191:
----------------------------

    Resolution: Not A Problem

> <tiles:insert> flushes on JSP 1.2+ container
> --------------------------------------------
>
>          Key: STR-1191
>          URL: http://issues.apache.org/struts/browse/STR-1191
>      Project: Struts Action 1
>         Type: Improvement

>   Components: Tiles
>     Versions: Unknown
>  Environment: Operating System: All
> Platform: All
>     Reporter: nicolas de loof
>     Assignee: David Graham
>     Priority: Minor
>      Fix For: 1.2 Family
>  Attachments: patch.txt
>
> <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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira