Arno,
JavaServer Pages Standard Tag Library (JSTL)
http://java.sun.com/products/jsp/jstl/ has support locale-sensitive
formatting tags which can be used to present a Date in the users locale in a
JSP.
I18N-capable formatting (with a URI of http://java.sun.com/jstl/ea/fmt and a
prefix of fmt): provides tags that support I18N and localized formatting and
parsing.
see the following links:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/tld-summary.html
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/formatDate.html
----- Original Message -----
From: "Arno Schatz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, June 20, 2005 5:40 PM
Subject: localisation of Dates
Hi,
How do I present a Date in the users locale in a JSP?
I tried
<bean:write name="mybean" property="somedate" />
but the format is not ok. When I use the format attribute it won't show up
in the locale preferred way.
I would like to format it like:
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
DateFormat.MEDIUM, getLocale());
But how to do that in a JSP?
thanks,
Arno
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]