Re: submit date in textfield with custom date format

2010-12-12 Thread Li Ying
Read this doc: http://struts.apache.org/2.2.1/docs/type-conversion.html From [# 3 Creating a Type Converter] to [# 6 Applying a Type Converter for an application] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For a

Re: submit date in textfield with custom date format

2010-12-12 Thread cellterry
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 co

Re: submit date in textfield with custom date format

2010-12-06 Thread li wei
what is your locale associated with the request? if your locale's date format is defferent from "-MM-dd" , you have to customize the type conversion to make it work. http://struts.apache.org/2.2.1/docs/type-conversion.html -

Re: submit date in textfield with custom date format

2010-12-06 Thread Maurizio Cucchiara
I'm not sure I understand what you mean, did you get an ognl.MethodFailedException exception? 2010/12/6 cellterry : > > Dear All, > > I am using struts textfield tag with a date field with date format > "-MM-dd." > > I have seen the following link which also can display what I want. > > http:/