[ 
https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46974#action_46974
 ] 

Musachy Barroso commented on WW-3301:
-------------------------------------

Did you ask the freemarker guys? this looks like a freemarker problem to me. S2 
doesn't control the order in which freemarker outputs content. 

> 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.1.8
>            Reporter: Dushyant Pandya
>            Priority: Blocker
>
> 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.

Reply via email to