Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Validate Dates - Other Locales

CRANFORD, CHRIS

2010-03-09


Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.