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/03/14 13:16:13 UTC

DO NOT REPLY [Bug 17996] New: - inside a BodyTag inserts included content before BodyTag content

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=17996>.
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=17996

<tiles:insert> inside a BodyTag inserts included content before BodyTag content

           Summary: <tiles:insert> inside a BodyTag inserts included content
                    before BodyTag content
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Tiles framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: smidb@gmx.de


Using <tiles:insert flush="false"> inside a BodyTag causes Tiles to write the
inserted content before the BodyTags content:
E.g.:

<logic:iterate id="id" name="bean" property="property" >
   <tr><td>
     <tiles:insert definition="writeSomething" flush="false" />
   </td></tr>
</logic:iterate>

creates the output:

includeWroteSomething1
includeWroteSomething2
...
<tr><td>
</td></tr>
<tr><td>
</td></tr>
...

Using jsp:include 

<logic:iterate id="id" name="bean" property="property" >
   <tr><td>
     <jsp:include page="writeSomething.jsp" flush="false" />
   </td></tr>
</logic:iterate>

instead craetes correct output:

<tr><td>includeWroteSomething1
</td></tr>
<tr><td>includeWroteSomething2
</td></tr>
...


Using container tomcat 4.1.18, struts-1.1-rc1

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