You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Jeromy Evans <je...@blueskyminds.com.au> on 2008/02/24 08:38:30 UTC

i18n tag - OGNL implementation changed or just a bug?

Since the beginning of time, the i18n tag has contained the following 
OGNL expression to lookup a resource bundle:

ResourceBundle bundle = (ResourceBundle) findValue("texts('" + name + "')");

and TextProvider has provided the method:

ResourceBundle getTexts(String bundleName);

That OGNL expression definitely doesn't call getTexts(name) when a 
TextProvider is available (in Struts 2.1.1).  Does anyone know if OGNL 
has changed and "texts('name')" used to be a match getTexts(String), or 
is this just a bug?

Thanks,
Jeromy Evans

PS. In the case that the call fails to find a resource bundle, the i18n 
tag uses the LocalizedTextUtil to look up the bundle instead, so its 
easy to go unnoticed.




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