You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/10/26 23:59:50 UTC

[jira] Resolved: (WW-3301) template_exception_handler=rethrow and struts action tag in freemarker page makes the action result to be put in response before the actual freemarker page execution response

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

Musachy Barroso resolved WW-3301.
---------------------------------

    Resolution: Duplicate

in that case closing as duplicate

> template_exception_handler=rethrow and struts action tag in freemarker page makes the action result to be put in response before the actual freemarker page execution response
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3301
>                 URL: https://issues.apache.org/struts/browse/WW-3301
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Dushyant Pandya
>
> When template_exception_handler=rethrow is set in freemarker.properties file and when a freemarker page is using s.action tag then the s.action tag execution response is added to the response before the freemarker execution response
> For example,
> Lets say I have 
>  1. A freemarker page that invokes "someAction" from "someNamespace" as below
>  2.The "someAction" responds with a response lets "some action response" 
> The freemarker page
> --------------------------------
> [#ftl] 
> <body>
>  Some body text
>  [@s.action name="someAction" namespace="someNamespace" executeResult=true /] 
> </body>
> --------------------------------
> Expected Output:
> -----------------------
> In the above mentioned case the expected http response should have a body as follows
> <body>
> Some body text
> some action response
> </body>
> Actual Output:
> -----------------------
> The actual output puts the s.action tag invocation result before the freemarker output it (instead of in lining it) as below
> some action response
> <body>
> Some body text
> </body>

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