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

[jira] Issue Comment Edited: (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:comment-tabpanel&focusedCommentId=46976#action_46976 ] 

Dushyant Pandya edited comment on WW-3301 at 10/26/09 3:52 PM:
---------------------------------------------------------------

I checked there is already another defect WW-3195 for the same issue. The other defect also mentions a possible solution. This is an issue with FreemarkerResult and hence Struts 2. Also, this problem only occurs when template_exception_handler=rethrow in freemarker.properties file.

      was (Author: dpandya):
    I checked there is already another defect WW-3195 for the same issue. The other defect also mentions a possible solution. This is an issue with FreemarkerResult and hence Struts 2.
  
> 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.