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

org.apache.struts2.tiles.StrutsTilesRequestContext dispatch issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.7
    • 2.3.8
    • Plugin - Tiles
    • None

    Description

      public void dispatch(String include) throws IOException {
          if (include.endsWith(mask) || include.endsWith(".jsp")) {
              // FIXME This way FreeMarker results still don't have a content-type!
          	include(include);
          } else {
              super.dispatch(include);
          }
      }
      

      The condition "include.endsWith(".jsp")" causes the template jsp missing its charset encoding.
      It should be forward, not be include, so that the charset encoding in the template page will works.

      Attachments

        Activity

          People

            Unassigned Unassigned
            linuschien Linus Chien
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: