Here
is the way I did it:
I am
using the template approach for the jsp files.
template.jsp is the template file
wizard.jsp has has the template tags
wizardpageX.jsp (where X is a number and corresponds to the number of
screens in your wizard) contains the presentation.
Inside
of the wizardpageX.jsp there are 2 hidden fields (page and direction).
page holds the number of the page we are viewing and direction holds
the action we want to take ( next, previous, finish, cancel). I
use JavaScript to update the direction tag when one of the buttons are
pushed. The ActionForm can validate the input for the page we are viewing
based on the direction we want to go. If there are any errors, we forward
back to wizard.jsp ( the input file ). wizard.jsp will look at the
page property and decide which wizardpageX.jsp file to display as the body of
the template.jsp. If there
aren't any errors, my Action object will update the page property to the page we
want to go and forward control back to wizard.jsp.
James
Hicks
|
- Override Input Form / JSP when Errors Are Encountered Jeff Trent
- Re: Override Input Form / JSP when Errors Are Encou... William Jaynes
- RE: Override Input Form / JSP when Errors Are Encou... Nanduri, Amarnath
- Re: Override Input Form / JSP when Errors Are Encou... Hicks, James
- RE: Override Input Form / JSP when Errors Are Encou... Nanduri, Amarnath
- RE: Override Input Form / JSP when Errors Are Encou... Hicks, James