struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Larry \(L.\)" <lzhan...@ford.com>
Subject RE: Struts validator
Date Fri, 01 Feb 2008 15:16:25 GMT
We are not using Struts 2 tag and thus I can't use s:submit tag. 

-----Original Message-----
From: David Harland [mailto:dharland@ufi.com] 
Sent: Friday, February 01, 2008 10:01 AM
To: Struts Users Mailing List
Subject: RE: Struts validator

You can do it by having 3 different methods such as

method1() method2() method3() and then have 

validateMethod1() validateMethod2() validateMethod3() 

then in your form 

<s:submit key="button.method1" method="method1"/> 
<s:submit key="button.method2" method="method2"/> 
<s:submit key="button.method3" method="method3"/> 

or you can do by using action aliases and have three validation xml
files.

http://struts.apache.org/2.0.11/docs/validation.html

-----Original Message-----
From: Zhang, Larry (L.) [mailto:lzhang20@ford.com] 
Sent: 01 February 2008 14:45
To: Struts Users Mailing List
Subject: RE: Struts validator

 
Can some Struts guru answer the following questions?
-----Original Message-----
From: Zhang, Larry (L.)
Sent: Thursday, January 31, 2008 3:27 PM
To: 'Struts Users Mailing List'
Subject: Struts validator

Hello coworkers,

I have a questions regarding the struts validation..., say I have three
text fields to be validated in struts validation, and three submit
buttons as well. When I submit one buttion, I only need to validate one
field, and when I click on the other submit button, I need to validate
the other field. Currently, all three fields are validated even though I
don't need to. Is there any way to overcome this issue?

Thanks. 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


- ------
ML {UFI}

______________________________________________________________________
Ufi Limited 
Registered in England No.  3980770 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

learndirect Solutions Ltd 
Registered in England No. 5081669 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

UFI Charitable Trust 
Registered in England No.  3658378 
Registered Charity No.  1081028 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

This email has been scanned by the MessageLabs Email Security System.

______________________________________________________________________

---------------------------------------------------------------------
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


Mime
View raw message