You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by slideharmony <se...@tiscali.it> on 2007/11/16 17:52:26 UTC

dispatchaction in struts2

Is there something like the struts' dispatchaction in struts2? or have I to
use different actions?
-- 
View this message in context: http://www.nabble.com/dispatchaction-in-struts2-tf4822558.html#a13796997
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: dispatchaction in struts2

Posted by Dave Newton <ne...@yahoo.com>.
You can call specific methods on actions in several
different ways, the <s:submit method="foo".../>, for
example, will submit a form to be processed by a
specific method. You *could* use the same technique to
pass a parameter in a GET URL; see the associated
discussion regarding this from just a few days ago
(and, in fact, at one point your exact question was
asked and answered in one of the threads).

It's also pretty easy to define an action mapping
("alias") that specifies the method in your struts.xml
configuration file, if you're going the XML
configuration route:

<action name="aName" class="aClass" method="foo">...

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org