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

No content-type header in Tiles Result response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.9
    • Plugin - Mechanism
    • None
    • JBoss-4.0.5.GA/Tomcat-5.5

    Description

      Following is the description of the problem, as reported by Elin Heinstedt:

      When forwarding from an action to a tiles result the content-type of the response is empty.

      • The tiles result i defined in a tiles definition file:

      <definition name="tiles.letters" template="/tilesResult.jsp">
      <put name="content" value="/tile-letters.jsp" />
      </definition>

      • The tilesResult.jsp uses insertAttribute:

      <tiles:insertAttribute name="content" />

      • Each page declares the contentType UTF-8:

      <%@ page contentType="text/html; charset=UTF-8" %>

      • If a Disptacher Result a used instead of the TilesResult the content-type of the response is text/html; charset=UTF-8.

      Attachments

        Issue Links

          Activity

            People

              brenmcguire Antonio Petrelli
              brenmcguire Antonio Petrelli
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: