template_exception_handler=rethrow and struts action tag in freemarker tag 
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


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
 [[email protected] 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