Volker Krebs wrote:

> Hello,
> 
> I wanted to use the new <bean:write> format mechanism,
> I specified my format strings in the message resources.
> So far so good ... everything was fine, but when I changed the
> user locale with Action.setLocale() nothing happend for
> FLOAT_FORMAT_KEY.
> The Problem is in
> org.apache.struts.taglib.bean.WriteTag.formatValue(...)
> after line 318.

Ok thanks for fixing that, I found somethig else,
if we have a java.util.Date a toString is printed.

} else if ((value instanceof java.sql.Date) ||
      value instanceof java.util.Date) { //check also for util.Date
   formatStr = RequestUtils.message(pageContext, this.bundle,
               this.localeKey, DATE_FORMAT_KEY);
}

You also have to check if the type is java.util.Date and
use the DATE_FORMAT_KEY for this type.

thanks

Volker


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

Reply via email to