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

Hudson commented on WW-3831:
----------------------------

Integrated in Struts2 #486 (See [https://builds.apache.org/job/Struts2/486/])
    WW-3831 adds the same behaviour as in ServletUrlRenderer to render dynamic 
action in URL tag (Revision 1344990)

     Result = SUCCESS
lukaszlenart : 
Files : 
* 
/struts/struts2/trunk/plugins/portlet/src/main/java/org/apache/struts2/components/PortletUrlRenderer.java

                
> Portlet Plugin Problem w/Dynamic Actions in the URL Tag
> -------------------------------------------------------
>
>                 Key: WW-3831
>                 URL: https://issues.apache.org/jira/browse/WW-3831
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Portlet
>    Affects Versions: 2.3.3, 2.3.4
>         Environment: Struts 2.3.4, Portlet-Plugin 2.3.4, Portlet
>            Reporter: Todd Kofford
>            Assignee: Lukasz Lenart
>              Labels: patch, plugin, portlet
>             Fix For: 2.3.5
>
>         Attachments: PortletUrlRenderer.java.patch
>
>
> When using the URL tag and defining a value for the "action" attribute that 
> is an expression using "%{ ... }" notation, that expression does not get 
> evaluated against the value stack when the applications is run as a portlet. 
> However, when run as a standalone web application, that same expression is 
> evaluated properly. For example:
> {code}<s:url action="%{actionState + formType}" var="displayURL">{code}
> where "actionState" & "formType" are variables on the value stack. 
> An example would be where *actionState=create* & 
> *formType=ChangeOfAddressForm*, where my desired action would be 
> *createChangeOfAddressForm* which is a valid action in the application. For 
> the standalone web application this works properly, but when the application 
> is run as a portlet, I get *\%\{actionState + formType\}* as the action, 
> which is not a valid action.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to