You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2004/12/15 11:16:23 UTC
Struts, JSTL and ResourceBundle
Hello,
My customer would like to be able to change i18n messages easily (without requirement to redeploy webapp or edit files
in context/WEB-INF/classes/...)
We suggested to put messages in database, and use a custom Struts messageResource impl to retrieve them, according to
http://wiki.apache.org/struts/StrutsMessageResourcesFromDatabase
We want to use EL in our JSP, and AFAIK it requires the "javax.servlet.jsp.jstl.fmt.localizationContext" servlet-context
init param to be set to a LocalizationContext implementation or to a ResourceBundle path.
How can I configure JSTL to use a custom Message source ? I don't know how to build a ResourceBundle (as required by
LocalizationContext) from database messages (ResourceBundle is full of private static method I cannot override)
Thanks for any suggestion
Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org