You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Jeremy JGR. Grumbach" <JG...@pulsar.be> on 2007/12/19 18:51:12 UTC
Question about validation mechanism
Hi,
I have a page "add.jsp" with a form and lots of fields. I have added a
validation in my struts configuration to validate the form.
During the form validation, if an error is detected, then an action
error is added to the request and struts redirects to the "input"
forward. In most of cases, it is the "add.jsp" page. And all the fields
that the user has entered are still there.
Does anybody know how the validator interceptor does to keep the values
that the user has entered?
Thanks in advance,
Jeremy
Re: Question about validation mechanism
Posted by Ian Roughley <ia...@fdar.com>.
The validator interceptor doesn't do anything. If you are using the s2
tags, then the getter matching the name attribute will be called on the
action or model.
/Ian
--
Ian Roughley
>From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@fdar.com
Jeremy JGR. Grumbach wrote:
> Hi,
>
>
>
> I have a page "add.jsp" with a form and lots of fields. I have added a
> validation in my struts configuration to validate the form.
>
> During the form validation, if an error is detected, then an action
> error is added to the request and struts redirects to the "input"
> forward. In most of cases, it is the "add.jsp" page. And all the fields
> that the user has entered are still there.
>
> Does anybody know how the validator interceptor does to keep the values
> that the user has entered?
>
>
>
> Thanks in advance,
>
>
>
> Jeremy
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org