ng List
> Subject: Re: textfield with Date object
>
> Hi,
>
> (copied from an earlier thread on numbers)
>
> see
> http://struts.apache.org/2.1.8.1/docs/formatting-dates-and-numbers.html
>
> It is important to know that Struts 2 has always a locale context
> requ
equest
>> (rendering the form and the current value in the textfield) and the
>> second request (processing the submitted form).
>>
>> - René
>>
>> Wick, Dan schrieb:
>>> I accept your answer, but Struts2 should just handle this! :-(
>>>
>>
uld just handle this! :-(
>>
>> I guess I'll write a number of helper methods like you did.
>>
>>> -Original Message-
>>> From: Greg Lindholm [mailto:greg.lindh...@gmail.com]
>>> Sent: Tuesday, March 30, 2010 10:14 AM
>>> To: Strut
rch 30, 2010 10:14 AM
>> To: Struts Users Mailing List
>> Subject: Re: textfield with Date object
>>
>> (Seems like I just answered this question... but here it is again this
>> time for Dates)
>>
>> In my experience it's better to define number (and
ist
> Subject: Re: textfield with Date object
>
> (Seems like I just answered this question... but here it is again this
> time for Dates)
>
> In my experience it's better to define number (and time) input fields
> as String and perform the conversion and validation in your
(Seems like I just answered this question... but here it is again this
time for Dates)
In my experience it's better to define number (and time) input fields
as String and perform the conversion and validation in your action
using java.text.NumberFormat (and java.text.DateFormat). This puts
you in
Does anyone know how to change the format of dates coming in on a text input
being backed by a java.util.Date in the Action? If I enter dates in US format
(ex: 3/31/2010 for March 31, 2010) everything is fine. This requires a
different style input though, using Day/Month/Year (31/3/2010). I s
7 matches
Mail list logo