[Opensource] Transition and redirection
Eddie Lewis
ELewis at copyright.com.au
Tue Nov 26 21:08:14 PST 2002
Tsanko
Im not 100% sure of what you are asking, however this may help (or i may be
way off track)
We use a generic.jsp that you set certain parameters in your controller.
something like
<bean:define id="formaction" property="formAction" type="java.lang.String"/>
<logic:notPresent property="formAction">
<bean:define id="formaction" value="set some default contoller here"
type="java.lang.String"/>
</logic:notPresent>
<logic:present property="formAction">
<bean:define id="formaction" property="formAction"
type="java.lang.String"/>
</logic:present>
<form name="mainform" action="<%= formaction %>" method="POST">
....
</form>
set the formaction value in your controller
i.e.
response.addOutput(new Output("formAction", "/expresso/Controller.do"));
Then setup the transition (as required) in your controller and output it
within the form tag. There are several ways to do this via the transition
tags or via the <logic:iterate id="oneTrans" property="transitions">
technique to output several transitions without hardcoding any names, etc.
Hope this helps
-----Original Message-----
From: Tsanko Stefanov [mailto:tsanstef at hotmail.com]
Sent: Wednesday, 27 November 2002 7:59 AM
To: opensource at jcorporate.com
Subject: [Opensource] Transition and redirection
Hi folks,
I send the same question under different subject. Sorry for that.
I need some help.
I have a controller that must provide a Transition to a state in a different
Controller back to the jsp in such a way that the when pressed the
transition will redirect the user to the required Controller and state.
Here is the situation
1) show.jsp has a form which action is set to CurrentController
Upon sertain event the controller will return a transition trContinue that
will take the user to NextController with a state nextState.
2) As a result in the show.jsp there will be a form which action is set to
CurrentController and a Transition that is supposed to take the user to
another Controller
Is this possible to accomplish?
Thanks
>From: larry hamel <expresso at codeguild.com>
>Reply-To: opensource at jcorporate.com
>To: opensource at jcorporate.com
>Subject: [Opensource] escapeHander in <jdbc> tag
>Date: Mon, 25 Nov 2002 23:04:48 -0800
>
>the escapeHander attribute for expresso_config <jdbc> tag does not seem to
>be defined in the DTD. should it be defined in some successor to
>http://www.jcorporate.com/dtds/expresso-config_4_0.dtd
>
>assuming yes, what shall we call this DTD, 4.1 or 5.0?
>
>larry
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20021127/4895bdb2/attachment-0002.htm
More information about the Opensource
mailing list