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:31:50 UTC

[jira] Created: (WW-3301) 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

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
 [@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.


[jira] Updated: (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

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-3301:
--------------------------------

    Affects Version/s:     (was: 2.1.8)
                       2.2.0

> 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.


[jira] Updated: (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

Posted by "Dushyant Pandya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dushyant Pandya updated WW-3301:
--------------------------------

    Summary: 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  (was: 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)

> 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
>
> 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.


[jira] Commented: (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

Posted by "Dushyant Pandya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46978#action_46978 ] 

Dushyant Pandya commented on WW-3301:
-------------------------------------

Is there any plan to fix WW-3195? 

> 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.


[jira] Updated: (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

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-3301:
--------------------------------

    Priority: Major  (was: Blocker)

downgrading priority 

> 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
>
> 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.


[jira] Updated: (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

Posted by "Dushyant Pandya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dushyant Pandya updated WW-3301:
--------------------------------


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.


[jira] Updated: (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

Posted by "Dushyant Pandya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dushyant Pandya updated WW-3301:
--------------------------------

    Priority: Blocker  (was: Major)

Updated the priority to Blocker as we can not go to production with this defect. 

> 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.


[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

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (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

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ 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.


[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

Posted by "Dushyant Pandya (JIRA)" <ji...@apache.org>.
    [ 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.