DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34987>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34987 Summary: validateDate does not handle exceptions Product: Struts Version: 1.2.4 Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P4 Component: Validator Framework AssignedTo: dev@struts.apache.org ReportedBy: [EMAIL PROTECTED] I created acustomized Validator for date. It first does some complex validation before validating the date string. Inside the validation method I call the Struts org.apache.struts.validator.FieldChecks.validateDate(bean, va, field, errors, request); with the strict MM/dd/yyyy format declared in validation.xml. When I give it an invalid formatted date, say 12/00/2005 an unhandled exception is thrown by the date parser within the validateDate method. It than shows the exception stack on the server log. This should not happen - it should catch the exception, modify the errors and return false, or just throw an exception and let me handle it. In addition, why the hack does validateDate return a Date object if it is validated??? Just the Boolean TRUE or FALSE should come back. Strange... -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]