Re: how to use requiredif

2003-08-14 Thread George Hill
thank you. i understand it. can you tell me where can i find all the validator 
document? i have searched the struts 1.1 document, but find a little.
- Original Message - 
From: Alex Shneyderman [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 7:11 PM
Subject: RE: how to use requiredif


 field property=phone depends=requiredif
 arg0 key=venue.phone /
 var
 var-namefield[0]/var-name
 var-valuevenueId/var-value
 /var
 var
 
 var-namefield-test[0]/var-name
 var-valueEQUAL/var-value
 /var 
 var
 
 var-namefield-value[0]/var-name
 var-value0/var-value
 /var 
 /field
 
 here is an example where phone is required if venueId is EQUAL to 0.
 There are couple of other options for the kind of test just look it up
 in FiledsCheck validator.
 
  -Original Message-
  From: georgehill [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 06, 2003 11:35 PM
  To: [EMAIL PROTECTED]
  Subject: how to use requiredif
  
  Hi all,
  
  I hava question about the use of required in the validation.xml
 file.My
  example is :
field property=conPassword depends=requiredif
  arg0 key=prompt.confirm.password/
  var
var-nametest/var-name
var-value((newPassword != null)/var-value
  /var
/field
  Is it right? If it's wrong, please give me a right example.
  Thanks a lot. :)
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Re: how to use requiredif

2003-08-09 Thread George Hill
I am trying to do a change password action. It has three fields, original password, 
new password and confirm new password. I want to check the confirm new password if the 
new password is not null.So i
want to use the requiredif.
thank you for you answer.

- Original Message - 
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 9:28 PM
Subject: RE: how to use requiredif


 It looks like you're just trying to make sue that the password field is
 filled in right?  If so, all you need to use is the 'required' validation.
 Just replace requiredif with required, and get rid of the var section.  This
 will make sure a password was entered.
 Is this what you want to do?
 
 - Keith
 
 
 -Original Message-
 From: georgehill [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 11:35 PM
 To: [EMAIL PROTECTED]
 Subject: how to use requiredif
 
 
 Hi all,
  
 I hava question about the use of required in the validation.xml file.My
 example is :
   field property=conPassword depends=requiredif
 arg0 key=prompt.confirm.password/
 var
   var-nametest/var-name
   var-value((newPassword != null)/var-value
 /var
   /field
 Is it right? If it's wrong, please give me a right example.
 Thanks a lot. :)
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


a html tag problem

2002-11-19 Thread George Hill
hi, all
i am using struts 1.0.2.i have a problem about the html tag.for example, the 
html:text tag. sometimes i need some html code like input type=text name=xxx 
class=xxx id=xxx size=10. how can i put the class and the id property to
struts html tag?
thanks all.:)