[Opensource] Réf. : [Opensource] Transition and TransitionTag
Raul DAVIDOVICH
R.DAVIDOVICH at caconcology.com
Fri Mar 14 02:37:46 PST 2003
Yes,
the transition tag must be used inside a form, otherwise there's no action
defined for it (it doesn't know which controller to call).
here is a sample code:
<html:form action="/MyController.do?cmd=button" method="POST" >
<td>
<expresso:TransitionTag name="command" />
</td>
</html:form>
hope this helps
Regards
---------------------------------------------------
Raul Davidovich
Responsable Informatique
Cvitkovic & Associés Consultants
(33) 1 45 15 40 68
(33) 1 45 15 40 41 Fax
-------------------------------------------------------
http://www.caconcology.com
|---------+------------------------------->
| | javamail at ubbi.com.br|
| | Envoyé par : |
| | opensource-admin at jco|
| | rporate.com |
| | |
| | |
| | 13/03/2003 10:53 |
| | Veuillez répondre à |
| | opensource |
| | |
|---------+------------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| Pour : <opensource at jcorporate.com> |
| cc : |
| Objet : [Opensource] Transition and TransitionTag |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
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/
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list