Thanks Chris, for the answer, but I don't want to display the date. I need a
textfield that only accepts dd.MM.yyyy format, and in the action class I
want to define a Date object for this textfield. If the date is not in the
format dd.MM.yyyy, it should give a validation error. Any ideas?

Isn't it too difficult to deal with dates and decimal numbers with Struts 2.
Maybe it is the lack of documentation, I don't know.



Chris Pratt wrote:
> 
> Try using <s:text name="format.date"><s:param value="%{date
> expression}"/></s:text>
>   (*Chris*)
> 
> On Sun, Sep 14, 2008 at 6:20 AM, Struts2 Fan <[EMAIL PROTECTED]> wrote:
> 
>>
>> I am not using s:datetimepicker. I am using the s:textfield tag. In every
>> browser, I want a single date format. I googled, read the documentation,
>> but
>> I couldn't find an answer.
>>
>>
>>
>> Struts2 Fan wrote:
>> >
>> > Hi all,
>> >
>> > I want to set a global date format. Is it possible? I defined
>> > format.date={0,date,dd.MM.yyyy} in package.properties file, but it does
>> > not work.
>> >
>> > Any ideas?
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-set-global-date-format--tp19478823p19480284.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-global-date-format--tp19478823p19590199.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to