B
Bernie Wieser
We are using the STRUTS validator on a project that allows a user to
registered themselves through a wizard. That means they step through
eigh forms (JSP pages) that are backed onto one Action/ActionForm
class.
Now, we set the page property on the JSP page, and in the validator,
but the problem we have is that any error will take use to the
input page as defined in the struts-config.xml action mappings - which
is the first page.
At first I assumed (incorrectly) that if the validator failed, and
there
was no input attribute, I would
be redirected back to the page I was forwarded to. This isn't so, as
supposedly the input attribute must be present for validation to
happen.
So then I thought I could set input="myaction.do"...
Does anyone have and example of how to use the page attribute from
validator
forms with multiple input pages? Or a suggestion of a good scheme to
have errors directed back to the page they came from (and still use a
single Action/Form)?
Cheers,
Bernie Wieser
registered themselves through a wizard. That means they step through
eigh forms (JSP pages) that are backed onto one Action/ActionForm
class.
Now, we set the page property on the JSP page, and in the validator,
but the problem we have is that any error will take use to the
input page as defined in the struts-config.xml action mappings - which
is the first page.
At first I assumed (incorrectly) that if the validator failed, and
there
was no input attribute, I would
be redirected back to the page I was forwarded to. This isn't so, as
supposedly the input attribute must be present for validation to
happen.
So then I thought I could set input="myaction.do"...
Does anyone have and example of how to use the page attribute from
validator
forms with multiple input pages? Or a suggestion of a good scheme to
have errors directed back to the page they came from (and still use a
single Action/Form)?
Cheers,
Bernie Wieser