struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Römer <torsten.roe...@luniks.net>
Subject Preparable interface & getLocale()
Date Fri, 11 May 2007 08:10:43 GMT
I noticed that when calling getLocale() from prepare(), it seems to
return the system default locale instead of the locale set by the
request_locale request parameter, which is the case when calling it from
execute().

Is that supposed to be like that or could this be a bug?

I think the correct locale is needed also in prepare() in order to
populate controls with internationalized content. As a workaround I get
the locale directly from the request_locale parameter.

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message