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

Dave Newton commented on WW-2560:
---------------------------------

I don't see how this is related to WW-1796 or WW-2016.

Can you give an example of the annotation support you're proposing? If the 
action is already defined in an XML file where would an annotation come in to 
play? Perhaps I'm completely misunderstanding what you're saying.

> Annotation support for setting parameters (defined in <action> tag) from 
> struts.xml to associated action property
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2560
>                 URL: https://issues.apache.org/struts/browse/WW-2560
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - CodeBehind
>    Affects Versions: 2.0.11.1
>         Environment: Windows XP
>            Reporter: Ameya
>
> As per the issues reported (WW-1866, WW-1796 and WW-2016), Action annotation 
> should also support populating the action properties from parameters defined 
> in struts.xml. 
> E.G. Action below. 
>       <action name="updatePk"
>               class="com.mypk.pk1Action"
>               method="update">
>               <result type="tiles">XXX.detail</result>
>               <result name="cancel" type="tiles">XXX.cancel</result>          
>               <param name="role">ROLE_XXX;ROLE_XXX;ROLE_XXX</param>
>       </action>
> The Action annotation should have support for the param tag also. The role 
> String (in above case) should be pk1Action.  The pk1Action has the associated 
> getRole( ) and setRole(String) method. 

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