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

org.apache.struts2.tiles.StrutsTilesRequestContext dispatch issue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.7
    • Fix Version/s: 2.3.8
    • Component/s: Plugin - Tiles
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: