Little known fact, but you can specify the method via:

"?method:MY_METHOD_NAME"

This code exists to support the method attribute on the submit tag,
allowing you to submit the form to different methods based on what
button is clicked.

Don

On Nov 13, 2007 2:29 AM, Jim Theodoridis <[EMAIL PROTECTED]> wrote:
> How can i use a parameter to choose wich action executed?
>
> I have a crud action etc user.action
> is it possible to choose the action  fires  with a paramenter like
> user.action?action=list rather  than user!list.action?
>
>
>
>
> [EMAIL PROTECTED] wrote:
> > using wildcard:
> >
> > <action name="/home_*" method="{1}">
> >
> > </action>
> >
> > action URL for method login: /home_login
> >
> > see : http://struts.apache.org/2.x/docs/wildcard-mappings.html
> >
> >
> >
> >
> >> Hello
> >>
> >> In struts 1.x was using the DispatchAction  and with a parameter like
> >> action choosed wich action executed. Is there a way to do thiw in S2?
> >>
> >> tnx
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to