You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Harden ZHU <hz...@gmail.com> on 2008/11/03 10:59:42 UTC
struts2 validation failed method
Hi,
I have Basic Validation. If validation failed, which method struts2 is
calling? Can I define some method like in struts1 input?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: struts2 validation failed method
Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Hi!
If you look at the relationship between the ValidationInterceptor [1]
and the WorkflowInterceptor [2], you should be able to figure it out.
[1] - http://struts.apache.org/2.0.12/docs/validation-interceptor.html
[2] - http://struts.apache.org/2.0.12/docs/workflow-interceptor.html
Nils-H
On Mon, Nov 3, 2008 at 10:59 AM, Harden ZHU <hz...@gmail.com> wrote:
> Hi,
>
> I have Basic Validation. If validation failed, which method struts2 is
> calling? Can I define some method like in struts1 input?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: struts2 validation failed method
Posted by hernan gonzalez <hg...@gmail.com>.
The quick answer: in the default configuration, when the validation
fails the result INPUT ("input") is returned. You frequently define a
mapping for this action and result in your struts.xml which renders
the "original" jsp (the input) so that the user can see the errors
(eg: <s:actionerrors />) and reenter the data.
Hernán J. González
http://hjg.com.ar/
On Mon, Nov 3, 2008 at 7:59 AM, Harden ZHU <hz...@gmail.com> wrote:
> Hi,
>
> I have Basic Validation. If validation failed, which method struts2 is
> calling? Can I define some method like in struts1 input?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org