You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/02/08 17:45:16 UTC

[jira] Resolved: (TILES-104) No content-type header in Tiles Result response

     [ https://issues.apache.org/struts/browse/TILES-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli resolved TILES-104.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.1

The problem was that the response was always included in case of a direct page.
Now it tries to dispatch (i.e. forward) if possible.

The problem for Tiles is fixed, anyway it does not work without the fix for WW-1724.

> No content-type header in Tiles Result response
> -----------------------------------------------
>
>                 Key: TILES-104
>                 URL: https://issues.apache.org/struts/browse/TILES-104
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.1
>         Environment: JBoss-4.0.5.GA/Tomcat-5.5
>            Reporter: Elin Heinstedt
>         Assigned To: Antonio Petrelli
>             Fix For: 2.0.1
>
>         Attachments: example.zip
>
>
> 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.
> I attach sample code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.