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 <jhki...@summa-tech.com>
To: Struts Users Mailing List <user@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

Reply via email to