> -----Original Message----- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 15, 2004 3:16 AM > To: Struts Users Mailing List > Subject: 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)
The solution isn't to put the messages into a database. That just means everything gets slowed down as you constantly make db changes. If you cache the messages, I'm thinking that you might run into the same issues you have now What you might want to do is cause all of the i18n bundles to reload themselves to pick up new bundles. Which seems to be somewhat difficult, but this link might provide some help: http://www.jguru.com/faq/view.jsp?EID=44221 > > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]