struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mailtolouis2020-str...@yahoo.com
Subject Re: action-method-validation
Date Tue, 21 Jul 2009 08:27:53 GMT
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 <jhkiley@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 <jlvoo@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

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