You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hill Karimov <hi...@yahoo.com> on 2003/06/10 20:01:18 UTC

Is it possible to run other action inside xmlForm action?

Hi all,

Is it possible to run other action that extends
AbstractComplementaryConfigurableAction inside
xmlForm?
e.g.: run org.apache.cocoon.acting.DatabaseAddAction 

  public Map perform () {
  ...
  } else if ( formView.equals ( VIEW_CONFIRM ) ) {
    if ( command.equals( CMD_NEXT ) ) {
// here I want run my action
// some: 
MyAction action = new MyAction();
action.act( redirector, resolver, objectModel, source,
params );

       return page( VIEW_END );
    } else if( command.equals( CMD_PREV ) ) {
       return page( VIEW_INTEREST );
    }
  }

I know it sounds stupy, but I don't want to write
other actions for it.

any ideas, advise, tips,
Thanks a lot,

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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