I was wondering how to force the user to input a Date field? consider the a
class of Employee (dob, name).
and I wish to insert new data. 

I managed to force the date by the code below, but couldn't do that for the
date. 

example
Class Test {

   private Employee empl;

    
    @Validations(
           stringLengthFields ={
 @StringLengthFieldValidator(type = ValidatorType.SIMPLE, trim = true,
minLength="1" , fieldName = "empl.name",        message = "required field")

                                                }
    )  
   public String insertEmpl()
   {
         //do something here only if both DOB and NAME are not null (or size
0)

    }


    //getter setter here

}

thank you!!!!

-- 
View this message in context: 
http://www.nabble.com/S2%3A-validation-notation-on-DATE-%28object-that-has-a-Date-field%29-tp17995565p17995565.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to