On Fri, 27 Aug 2004, Václavík Radek wrote:

> 2) I don't see how the format of the date changes accrding to selected
> locale. There is one locale in session (the struts one - Globals.LOCALE_KEY)
> but this one has no influence. So I've tried to change the locale settings
> in windows to, e.g. ENGLISH, but the date is still shown in the original
> format (Czech).

JSTL uses different key for storing locale information (see specs
for details).

You can set an explicit locale in your JSP using fmt:setLocale tag.

Pavel

> Here is the snip of JSP code I am using:
> 
> <bean:define id="date" name="document" property="lastChangedDate"
> type="java.util.Date"/>
> <fmt:formatDate value="<%=date%>" dateStyle="FULL"/>

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

Reply via email to