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


> <tiles:insert> should pass flush attribute to JspWriter
> -------------------------------------------------------
>
>          Key: STR-1634
>          URL: http://issues.apache.org/struts/browse/STR-1634
>      Project: Struts Action 1
>         Type: Improvement

>   Components: Tiles
>     Versions: 1.1 Final
>  Environment: Operating System: other
> Platform: All
>     Reporter: Fabricio Voznika
>     Assignee: Don Brown
>     Priority: Minor
>      Fix For: 1.3.0

>
> Let's suppose I do a
> <titles:insert page="/template_main.jsp" flush="false">
> ...
> When the code is executed, the method InsertHandler.doEndTag() (inner of
> InsertTag) is called. In the end, before all catches (line 881), after 
> correctly
> testing for flush, doInclude() is called. It then calls TilesUtil.doInclude(),
> that calls TilesUtilImpl.doInclude(), that calls PageContext.include(String).
> According to the documentation (see bellow), this last method flushes the 
> JspWriter.
> "The current JspWriter "out" for this JSP is flushed as a side-effect of this
> call, prior to processing the include."
> The flush variable should be propagated to TilesUtilImpl.doInclude(), and
> PageContext.include(String, boolean) called.
> Always flushing, makes setting response headers, forwarding and error handling
> (forwarding) impossible to use together with tile.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to