cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wolf <w...@scirem.de>
Subject using actions in flow
Date Wed, 26 Nov 2003 15:37:04 GMT

Hello,
I want to use a modular Database Action in my flowscript.

I tried this approach:

myAction = cocoon.getComponent(???);
result = myAction.act("mod-db-sel","",{"table-set" : "login_check"});
cocoon.release(myAction);

The cocoon.getComponent method expects a component id, but how do I get 
this id?

I tried

myAction = 
cocoon.getComponent(Packages.org.apache.cocoon.acting.modular.DatabaseSelectAction.ROLE);

but that didn't work.

For completeness here is the action description in the 
sitemap/components/actions section:

<map:action name="mod-db-sel" 
src="org.apache.cocoon.acting.modular.DatabaseSelectAction">
    <descriptor>descriptors/database.xml</descriptor>
    <throw-exception>false</throw-exception>
</map:action>

Thanks for your help,

Michael



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


Mime
View raw message