You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "CRANFORD, CHRIS" <Ch...@setech.com> on 2010/03/09 22:07:58 UTC

Validate Dates - Other Locales

When I am logged in as a European user with de_DE as my locale, dates
should be submitted in forms as dd.MM.yyyy however, my Struts2 action
returns me to the INPUT jsp page and does not perform the "search"
action that it is suppose to.

>From what I have read, does Struts2 standard date validation expect the
format to me MM/dd/yyyy and not locale specific?  

If so, am I required to set the form field as a String type and convert
it in the action to a Date when my method is executed?

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org