Hi all !

I'm trying to use pretty correctly Locale with Struts (1.2.8).

I want to display for exemple a Date in current user Locale. Currently I
use this method :
<bean:write name="localizationForm" property="date"
formatKey="format.date.short"/>

with the adequate formatKey in my localized MessageRessources*.properties.
This works perfectly, but...

Since I just put in these .properties default short date format, is there a
convenient way with Struts to use Java native default date format ?

(in other words, I want an output like this, where I don't manually define
the format :
DateFormat sdf = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT,
locale);
System.out.println(sdf.format(new Date()));
)

Thanks in advance for your help !

Valentin


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

Reply via email to