You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jean-François Houzard <jh...@gmail.com> on 2009/12/15 21:06:50 UTC
Trigger 2 actions
Hello, I'm new with Struts 2.
I'm actually using Struts 2 with the struts-dojo-tags.
Consider the following situation.
I would like to submit a form and to associate two distinct actions to
the form, for exemple MyAction1 and MyAction2. And I would like that
MyAction1 refresh the MyRes1 div and that MyAction2 refresh the MyRes2
div.
How can I do that?
Thank you :)
Not working code example
--------------------------------------
<s:form namespace="/mynamespace" action="MyAction1, MyAction2"
targets="MyRes1, MyRes2">
<input type="text" name="data">
<sx:submit />
</s:form>
<s:div id="MyRes1"/>
<s:div id="MyRes2"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org