[Opensource] Trouble with transitions in JSPs
Peter A. Pilgrim
peterp at xenonsoft.demon.co.uk
Mon Jun 9 17:53:56 PDT 2003
Tino Dai wrote:
> 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);
>
Are you adding the transitions to the controller response?
response.add(t);
response.add(u);
> }
>
> 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:transitionTag name="myButton" />
<expresso:transitionTag name="addUser" />
> </expresso:ElementCollection>
>
>
> Any hints?
>
> Thanks!
> Tino
>
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
>
>
--
Peter Pilgrim
__ _____ _____ _____
/ //__ // ___// ___/ + Serverside Java
/ /___/ // /__ / /__ + Struts
/ // ___// ___// ___/ + Expresso Committer
__/ // /__ / /__ / /__ + Independent Contractor
/___//____//____//____/ + Intrinsic Motivation
On Line Resume
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
More information about the Opensource
mailing list