[Opensource] Trouble with transitions in JSPs

Tino Dai tdai at optonline.net
Mon Jun 9 10:37:34 PDT 2003


Hi Everybody,

     I found my problem to the Transition not showing up on the jsp
page. Actually, I found a workaround. I am using either

     In the controller:  response.addTransition(new
Transition("someMethod", this));
			
      			or
			Block newBlock = new Block();
			Transition i = new Transition("someMethod",this);
			newBlock.add(i);
			response.add(newBlock);

	will work.


	But this doesn't work:
	response.add(i) or response.addTransition(i)

Is this a bug or is there a reason behind why we can't do this?

-Tino


On Sun, 2003-06-08 at 20:51, 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);
> 
> }
> 
> 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
> 
> 
> _______________________________________________
> 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