You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Louis Voo <jl...@yahoo.com> on 2009/07/20 17:45:11 UTC
action-method-validation
Hi,
Does struts2 support action-method-validation ?
Regards
Louis
Re: action-method-validation
Posted by ma...@yahoo.com.
Hi,
I mean in xml validation, the document I read is
Action-validation.xml
Action-<alias>-validation.xml
What I wonder is S2 support Action-<action_method>-validation.xml?
For e.g I've input1() and input2() method in my action, when I call input1() I like to have something Action-input1-validation.xml to be use and input2() will use Action-input2-validation.xml. I did tried it, but it not work for me.
I know I can define alias to a action method, then I can use Action-<alias>-validation.xml, but this is not my first choice, unless there is no other way.
Regards
Louis
________________________________
From: Jim Kiley <jh...@summa-tech.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Monday, July 20, 2009 7:36:45 PM
Subject: Re: action-method-validation
Do you mean, can I write a validateFoo() method for my foo() action method
and be sure validateFoo() will run before foo() does? Yes.
jk
On Mon, Jul 20, 2009 at 11:45 AM, Louis Voo <jl...@yahoo.com> wrote:
> Hi,
>
> Does struts2 support action-method-validation ?
>
>
> Regards
> Louis
--
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com
Re: action-method-validation
Posted by Jim Kiley <jh...@summa-tech.com>.
Do you mean, can I write a validateFoo() method for my foo() action method
and be sure validateFoo() will run before foo() does? Yes.
jk
On Mon, Jul 20, 2009 at 11:45 AM, Louis Voo <jl...@yahoo.com> wrote:
> Hi,
>
> Does struts2 support action-method-validation ?
>
>
> Regards
> Louis
--
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com
Re: action-method-validation
Posted by Wes Wannemacher <we...@wantii.com>.
Yes
On Mon, Jul 20, 2009 at 11:45 AM, Louis Voo<jl...@yahoo.com> wrote:
> Hi,
>
> Does struts2 support action-method-validation ?
>
>
> Regards
> Louis
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org