[Opensource] Réf. : [Opensource] Expresso:TransitionTag
Raul DAVIDOVICH
R.DAVIDOVICH at caconcology.com
Tue Aug 13 06:29:53 PDT 2002
Hi,
Are you using the response.setStyle("myPage") in the definition of
your states?
From what I coud understand, there is where you make the link between
your controller and the view.
the style "myPage" is defined in myApp-config.xml as:
<forward name="myPage" path="/myApp/myPage.jsp" />
Hope this helps
Best 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
|---------+------------------------------->
| | "Kevin Cottrell" |
| | <kcottrell at odinpartn|
| | ersinc.com> |
| | Envoyé par : |
| | opensource-admin at jco|
| | rporate.com |
| | |
| | |
| | 06/08/2002 22:01 |
| | Veuillez répondre à |
| | opensource |
| | |
|---------+------------------------------->
>-----------------------------------------------------------------------------------------------------------------------------|
| |
| Pour : <opensource at jcorporate.com> |
| cc : |
| Objet : [Opensource] Expresso:TransitionTag |
>-----------------------------------------------------------------------------------------------------------------------------|
I am having trouble using/understanding the expresso:TransitionTag tag. I
get a button that displays but it doesn't link to anything so pressing it
does nothing.
Here are the code snippets:
foo-config.xml:
...
<forward name="idle" path="/foobar/foo.jsp" />
<forward name="login" path="/foobar/login.jsp" />
...
foo.java:
public class foo extends DBController
{
...
State idle = new State ("idle", "Idle State");
addState(idle);
setInitialState("idle);
State login = new State("login", "Login");
addState(login);
...
}
private void runIdleState(...)
{
...
Transition login = new Transition("login", this);
response.addTransition(login);
...
}
private void runLoginState(...)
{
// do stuff
}
foo.jsp:
...
<expresso:TransitionTag name="login" />
...
This puts a button labelled "Login" on the page but that is all.
My assumption was that this would produce a button with a link to something
like /.../.../foo.do?state="login".
What am I missing?
Thanks,
Kevin Cottrell
_______________________________________________
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