[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing objects between JSPs
At 11:19 AM 8/23/2002 -0700, Kevin Chipalowsky wrote:
>You should also remove the
>form from the session after the user completes (or
>cancels) the 4 pages.
Keep in mind also that a user may navigate away from your forms on their
own without completing the transaction, and without canceling it. If they
then come back to your form and start the process over they would then get
the info they had previously entered. This may not be desired behaviour.
So, you also need to clear the session at the beginning of the transaction.
I would do this by having a link to your form's first page, and the action
in that link triggers clearing the slate for a new transaction to start.
On another note, if you are using EJB's, you can also handle your issue
with using stateful session beans. I don't recommend it over the approach
Kevin proposed, but it is possible to do it with them.
Matthew Hardin