[
https://issues.apache.org/struts/browse/WW-1724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antonio Petrelli resolved WW-1724.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.0.10)
2.0.9
The fixes work also for FreeMarker.
I just added another example in the showcase to show how a layout page made
with FreeMarker leads to a correct "content-type".
> No content-type header in Tiles Result response
> -----------------------------------------------
>
> Key: WW-1724
> URL: https://issues.apache.org/struts/browse/WW-1724
> Project: Struts 2
> Issue Type: Bug
> Components: Plugins
> Affects Versions: 2.0.5
> Environment: JBoss-4.0.5.GA/Tomcat-5.5
> Reporter: Antonio Petrelli
> Assignee: Antonio Petrelli
> Fix For: 2.0.9
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.