Re: Validating start and end dates

2004-10-19 Thread Milind Rao
I forgot to mention that I'm using a DispatchAction class along with the DynaValidatorForm so the validation is declarative. So for Item 2, I'll just create my own validation rule. I just wanted to ensure that there wasn't already something available in the struts framework that I would re-invent

Re: Validating start and end dates

2004-10-19 Thread Bill Siggelkow
I would approach these problems in two separate ways -- for item 1 I would use a mask validator (regex). Then in the form, I would provide methods that allow you to get the converted values. (In the form, you will need to convert the entered String value into either using the dashes or slashes)

Validating start and end dates

2004-10-19 Thread Milind Rao
I'm using the Validator framework to validate dates and I have two questions 1. I'd like the user to be able to enter a date using different delimiters like '/' or '-'. So both MM-dd-y and MM/dd/ should be allowed. Is there a way to do that? Currently I'm using the built-in date validat