Yes, you are right. After searching online a while, I have the following conversion class: http://old.nabble.com/file/p30437359/DateTypeConverter.java DateTypeConverter.java
However, when I convert a date, I get the following error. Note that the class is found and loaded as "test" in class constructor is printed. test >>>>>>>LOG4J<<<<<<< 2 2010-12-12 17:22:00,338 [main] ERROR com.opensymphony.xwork2.conversion.impl.XWorkConverter - #com.opensymphony.xwork2.util.logging.commons.CommonsLogger.error(CommonsLogger.java:27)# - Conversion registration error java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:130) at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139) : : li wei-4 wrote: > > what is your locale associated with the request? > if your locale's date format is defferent from "yyyy-MM-dd" , > you have to customize the type conversion to make it work. > > http://struts.apache.org/2.2.1/docs/type-conversion.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://old.nabble.com/submit-date-in-textfield-with-custom-date-format-tp30366694p30437359.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org