[Opensource] Expresso:TransitionTag
Kevin Cottrell
kcottrell at odinpartnersinc.com
Tue Aug 6 13:01:15 PDT 2002
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
More information about the Opensource
mailing list