[Opensource] Doing transitions to a previous state!
Michael Rimov
rimovm at centercomp.com
Wed Oct 30 16:23:14 PST 2002
At 11:16 AM 10/30/2002 -0300, you wrote:
>At the moment I'm working with expresso4.1rc3 and I'm having some
>problems:
>
>I need to make some forms(states) act as wizards, so, I have these
>forms(states) that will receive some data from the user and if the user
>forget something or make something wrong it'll come back to the last
>form(state) and he must get some error messages! So i should know some
>about the last state(form) the user was in! How can I do this with
>expresso? Is there anyway to know some about the last state I was in???
Actually here's what you do:
In the process state:
ErrorCollection ec = new ErrorCollection();
ec.addError(blah blah blah);
response.saveErrors(ec);
Then in your jsp you display the error collection. [There's a couple of
tags that assist in this].
Check out the Login and Registration Controllers as they do extensive error
checking and also include a couple of tricks for things like field
highlighting, etc.
HTH!
-Mike
More information about the Opensource
mailing list