You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Asaf Paris Mandoki <as...@gmail.com> on 2007/07/04 23:41:20 UTC
Action tag with parameters
When directly calling an action we can send a petition like
.../ActionName.action?var1=val1&var2=val2
using the GET method.
I understand that that calls an action with a couple of parameters.
Can I do something similar when calling an action from the <s:action>
tag ? that is, Can I call an action using the action tag with a couple
of parameters?
If possible, can it also be done using the POST method?
Thanks in advance,
Asaf
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Action tag with parameters
Posted by yitzle <yi...@users.sourceforge.net>.
Quoting http://struts.apache.org/2.x/docs/action.html
> Parameters can be passed to the action using nested param tags.
(links to http://struts.apache.org/2.x/docs/param.html)
I'm not sure about the HTTP method...
What exactly are you trying to accomplish?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Action tag with parameters
Posted by Musachy Barroso <mu...@gmail.com>.
You can used nested param tag for that
<s:action name="ActionName" ..>
<s:param name="var1" value="%{'val1'}"/>
</s:action>
musachy
On 7/4/07, Asaf Paris Mandoki <as...@gmail.com> wrote:
>
> When directly calling an action we can send a petition like
>
> .../ActionName.action?var1=val1&var2=val2
>
> using the GET method.
>
> I understand that that calls an action with a couple of parameters.
>
> Can I do something similar when calling an action from the <s:action>
> tag ? that is, Can I call an action using the action tag with a couple
> of parameters?
>
> If possible, can it also be done using the POST method?
>
> Thanks in advance,
> Asaf
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd