You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gleichmann, Mario" <Ma...@Dresdner-Bank.com> on 2003/11/12 16:34:34 UTC

Direct Call of some Actions within another Action ?

Dear Community,

is it possible to call one or more Actions within another Action (let's say
a 'Composite-Action') ?

I want to call a certain Method of a collection of Actions in a row (let's
say i want to call update-methods within some DispatchActions and then do
the rest of the work in the Composite-Action, depending of the results of
the called update-Methods).

The calls should happen inside the execute-method of another action (the
'Composite-Action' - particularly i dont be able to use the standard
mechanism of an action-chain (by forwarding from one action to another
action) because the Composite-Action should keep control e.g. of the order
of the calls).

How can i get a reference to an instance of the actions i want to call? Is
there some way to use the RequestController or is there any Factory or
ProviderClass i am allowed to use in order to get these References (i am
sure it is not a good idea to instantiate the Actions by myself :o))?

... or is this approach completely wrong and there is some better way to
solve this problem (maybe extend the RequestController or use a plug-in) ???

Thanks for your help in advance !!! :o)

Mario Gleichmann

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