struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Van Stalle" <jan.vansta...@skynet.be>
Subject Re: Different Workflow for Business Functions
Date Thu, 25 Sep 2003 16:17:04 GMT
GŁnter,

I don't know if there is any standard support for navigation bars as you
describe. I made a similar functionality;

As you mention yourself ("business function context") navigation is part of
the business logic; so I made a navigation object which is maintained in my
action classes; the jsp's which display the navigation bar simple loop over
the navigation object and display it as illustrated by yourself.

So you setup the navigation in your action classes and the jsp's simply
display it.

Jan



<g.plattner@chello.at> wrote in message
news:20030923064147.IXEZ20127.viefep11-int.chello.at@localhost...
> I have a question concerning the control of workflow in struts framework:
>
> I'm just writing a large struts application. So I have to reuse some JSP's
in different workflows.
> That means, I view a JSP called x.jsp one time invoked from a.jsp and one
time invoked from b.jsp.
> Based on the calling JSP (a.jsp or b.jsp) I have to build an appropriate
navigation bar in x.jsp to go back
> to the previous point of view. Furthermore, it should be possible, to
navigate from x.jsp to c.jsp and then back
> to x.jsp and back to a.jsp or b.jsp depending on starting point.
>
> a.jsp -> x.jsp -> c.jsp
> a.jsp <- x.jsp <- c.jsp
> (navigation from x.jsp to b.jsp is not allowed)
>
> b.jsp -> x.jsp -> c.jsp
> b.jsp <- x.jsp <- c.jsp
> (navigation from x.jsp to a.jsp is not allowed)
>
> e.jsp -> x.jsp -> c.jsp
> e.jsp <- x.jsp <- c.jsp
> (navigation from x.jsp to a.jsp or b.jsp is not allowed)
>
> In this small example, the ploblem I have concerns the navigation bar in
x.jsp especially if
> invoked from c.jsp.
>
> Are there any features in Struts to support such workflow for jsp's and
actions.
> May be things like 'Business Function Context' ?
>
> Thanks for helping!
>
> GŁnter
> ===========================
> GŁnter Plattner
> Nagillergasse 70
> 6020 Innsbruck
> AUSTRIA




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message