On Wed, Nov 4, 2009 at 2:54 PM, Siddiq Syed <siddiq...@yahoo.com> wrote:
> > When you have a validation file like actionname-aliase-validation.xml and > you want to carryout date validation in that as other validation , there is > no direct way to do that. > Correct, this is a limitation, there currently is no way to (fully/safely/correctly) validate a localized Date using declarative validation. Fortunately Struts provides multiple mechanisms for validation and conversion so if one doesn't provide what you need you have options available to you. > > Handling DateFormat.parse() is more java specific way and can be done in > any > layer of the application. > Well Struts is a Java framework so I don't see this as a limitation. > The front-end validation need to be happen in the validation file, which > might be simple. > > If you really want to do front-end validation I'm sure you can find a good JavaScript library that provide this functionality. But when the date string gets to your action you are still going to need to convert and validate it before you use it.