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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to