Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2839

Body content are still flushing using struts2 tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.11.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3
    • 2.1.3
    • Plugin - Tags
    • None
    • JDK 1.5.0_10 / Tomcat 5.5.26

    Description

      On JSP pages with struts2 tags there are many chunks in servlet stream because of unnecessary flushing.
      A special wrapping mechanism for writer (existing in FreemarkerTemplateEngine class) don't worked.
      BodyContent class extends JspWriter class and writer realization org.apache.jasper.runtime.JspWriterImpl returning from template context extends JspWriter too. Therefore, calling of method isAssignableFrom always returns false.
      May be rewrite code as:
      bodyContent.getSuperclass().isAssignableFrom(writer.getClass()) ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fancy Catalina Wei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: