Matt Raible had an article about how to compare if two Strings match. I was going to see if you could use the same technique here, but it's down right now.

http://tinyurl.com/6jnv

Though, you don't need to use the Struts Validator for everything. You can also call your own custom validations too.

ActionErrors errors = super.validation(mapping,request);

// Your validations here

return errors;

So you could also compare your dates the old fashioned way and use the Struts Validation for whatever else.

-Ted.

Mick Knutson wrote:

I have a Value Object with java.sql.Dates, and I use String's on the front
end. I do a simple conversion, but I now need to compare a starting and
ending Date.
How can I do this with the Validation?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



-- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.



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



Reply via email to