cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: action executes action
Date Wed, 24 Oct 2001 20:54:26 GMT
Torsten Curdt wrote:
> 
> For some strange reason ;) I'd like to call an action from within an action.
> The only way I could think of is to obtain a SitemapComponentSelector from
> the ComponentManager and then select the desired action.
> 
> Did I miss something or is this the way to go?


ComponentSelector selector = (ComponentSelector) manager.lookup(Action.ROLE + "Selector");
Action action = (Action) selector.select("action-type");

Map objMap = action.act(.....);

selector.release(action);
manager.release(selector);

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message