[Opensource] Transition and TransitionTag

javamail at ubbi.com.br javamail at ubbi.com.br
Thu Mar 13 05:53:36 PST 2003


Hello all,

I have a Controller with two states: state1 e state2 and the following method for state1:

public ControllerResponse runState1State( ControllerRequest request,ControllerResponse response ) throws ControllerException
{
   Transition transition = new Transition();
   transition.setName( "T1" );
   transition.setLabel( "Go to State 2" );
   transition.setState( "state2" );
   response.add( transition);

   return response;
}

Each state is associated with a JSP page: page1.jsp and page2.jsp

Using the Transition created above (T1) and a TransitionTag, I want to create a button in page1.jsp that leads to state2 (and state 2).The mappings states-->pages in struts-config.xml are ok. How can I do it?

I tried to use: <expresso:TransitionTag name="T1"/> but it didn't work. Do I need to use some kind of form tag or something like that?

Thanks for help.

Jefferson
Quer internet Grátis com qualidade e muito mais serviços? Escolha o Caminho Mais Curto! Ubbi free! baixe agora o discador - http://free.ubbi.com.br/




More information about the Opensource mailing list