Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1634

<tiles:insert> should pass flush attribute to JspWriter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0
    • Tiles 1 Plugin
    • None
    • Operating System: other
      Platform: All
    • 21972

    Description

      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.

      Attachments

        Activity

          People

            mrdon Donald J. Brown
            fvoznika@hotmail.com Fabricio Voznika
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: