Just create a mutator in your action and Struts will populate the
value for you automatically.  I use this to set the Role into my base
action

<action name="myaction">
  <param name="role">admin</param>
</action>

  (*Chris*)

On 8/30/07, akash agrawal <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can someone explain me the usage of <param> element under <action> element? 
> How to access it property inside java action?
>
> Is this a valid config?
> <action>
>     <param name="roles">xyz, abc1, abc2</param>
> </action>
> How to access roles property in an action class?
>
> Thanks,
> -Akash
>
>
> ---------------------------------
> Shape Yahoo! in your own image.  Join our Network Research Panel today!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to