Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

locale formatted date input via textfield

Ketil Holden

2008-10-14


Author LoginPost Reply
Hi.

I'm using a a textfield that maps to a date. That works fine for American style dates, however my locale (NO) uses dd.MM.yyyy. I've searched and searched for this but can't find an answer...

I've checked that my Locale in fact is set to no-NO.

The textfield maps to a java.util.Date type. An American date is converted fine.

Here's what struts says when I enter dd.MM.yyyy:
DEBUG [http-8443-Processor25] (XWorkConverter.java:320) - falling back to default type converter [com.opensymphony.xwork2.util.XWorkBasicConverter@(protected)]
DEBUG [http-8443-Processor25] (XWorkConverter.java:388) - Property: validUntil
DEBUG [http-8443-Processor25] (XWorkConverter.java:389) - Class: model.Document
DEBUG [http-8443-Processor25] (XWorkConverter.java:278) - field-level type converter for property [validUntil] = none found
DEBUG [http-8443-Processor25] (XWorkConverter.java:388) - Property: document.validUntil
DEBUG [http-8443-Processor25] (XWorkConverter.java:389) - Class: actions.NewContract
DEBUG [http-8443-Processor25] (XWorkConverter.java:302) - global-level type converter for property [validUntil] = none found
DEBUG [http-8443-Processor25] (XWorkConverter.java:320) - falling back to default type converter [com.opensymphony.xwork2.util.XWorkBasicConverter@(protected)]
DEBUG [http-8443-Processor25] (OgnlValueStack.java:183) - Error setting value

Ketil Holden
Systemutvikler
Invenia Consulting AS
Grønnegata 78-80
Postboks 540
9254 Tromsø

Tlf:  982 90 816
Fax: 777 57 501

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