Hi 

I am new to struts and got 2 questions 

1/ I am trying to understand if the behaviour I am getting from a date
validation is right...when I put in an invalid date on my
DynaValidatorForm, say 31/11/2000, I get an error (correctly) on the
input field. Validation is working as it should. But I get an
exception on the Tomcat console...

input date 31/11/2001
26-Jan-2005 17:43:44 org.apache.commons.validator.GenericTypeValidator
formatDate
WARNING: 31/11/2001
java.text.ParseException: Unparseable date: "31/11/2001" .....

Is this a normal behaviour? shouldn't this exception be caught within
validateDate?

2/ I am using a subclass of DynaValidatorForm. And have 3 drop down
boxes for Day, Month and Year. In order to make use of the date
validator in struts, I have a additional hidden field that
concatenates these 3 fields into one in the validate() method. Should
this be defined as a pluggable validator instead?

Thanks for any advise.

Josh

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

Reply via email to