[Opensource] Trouble with transitions in JSPs

Tino Dai tdai at optonline.net
Sun Jun 8 17:51:07 PDT 2003


Hi Everybody,

    I am attempting my first real Expresso application, and I have run
into some problems with getting the transition button to show up on my
JSP page. On the rendered JSP page, it says: "The Transition Button
Could Not Be Displayed". Here are the relevant snippets of code:

Controller code:

protected void runPromptLoginState(ControllerRequest request,
ControllerResponse response) throws ControllerException {
  <stuff deleted>
  Transition t = new Transition("myButton",   
  "Login",org.oberoc.weblog.controller.TinoLogin.class,"processLogin");
  Transition u = new Transition("addUser",this);

}

struts-config.xml:

<action path="/TinoLogin" type="org.oberoc.weblog.controller.TinoLogin"
name="default"  scope="request" validate="false">
                        <forward name="promptLogin"
path="/expresso/components/weblog/login.jsp" />
                </action>


login.jsp:
<expresso:ElementCollection type="transition">
      <expresso:TransitionTag name="u" />
</expresso:ElementCollection>


Any hints?

Thanks!
Tino





More information about the Opensource mailing list