struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: action-method-validation
Date Tue, 21 Jul 2009 08:27:53 GMT

I mean in xml validation, the document I read is 

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.


From: Jim Kiley <>
To: Struts Users Mailing List <>
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.

On Mon, Jul 20, 2009 at 11:45 AM, Louis Voo <> wrote:

> Hi,
> Does struts2 support action-method-validation ?
> Regards
> Louis

Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message