I'm not sure I understand what you mean, did you get an ognl.MethodFailedException exception?
2010/12/6 cellterry <cellte...@gmail.com>: > > Dear All, > > I am using struts textfield tag with a date field with date format > "yyyy-MM-dd." > > I have seen the following link which also can display what I want. > > http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html > http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html > > However, when I submit the format, the date in struts action is null. > > Without the formatting, the date can be passed and hence I feel no other > bugs except formatting. > > My code is as follows: > > In Jsp: > > : > : > <s:textfield id="dt" key="dt" name="qr.dt" > value="%{getText('format.date',{qr.dt})}"/> > : > : > > In resource file: > > : > : > format.date={0,date,yyyy-MM-dd} > : > : > > Could anyone tell me how to make struts action class to retrieve the date > with custom date format? > > Terry. > > -- > View this message in context: > http://old.nabble.com/submit-date-in-textfield-with-custom-date-format-tp30366694p30366694.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 > > -- Maurizio Cucchiara --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org