This is actually a good example.

For fairness sake, I haven't seen many J2EE applications which forward to
login from different spots though.
J2EE containers usually take care of login and return to original URL.

Ivelin


----- Original Message -----
From: "Christopher Oliver" <[EMAIL PROTECTED]>
> <snip>
>
> >
> >Until now, it has shown to me a simple way to program simple
applications.
> >
> >
> >
> Well, actually I think the more complex the control flow the more the
> flow layer will really shine. Consider the login example, where you
> could need to login at any point during the application. With the flow
> layer you simply write a function login(), and call it from any place
> during your application. After completion of the login sequence, you are
> automatically returned to the calling page. Something like this
> (although still a simple example) is extremely difficult to implement
> with state-machine code. Other complex control flow constructs
> (conditional branching,  loops, etc) are straightforward with the flow
> layer but virtually impossible to comprehend with state-machine like code.
>
> Regards,
>
> Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to