I could be wrong, but every thing I've seen tell me that you can't do this with the current MessageResources API. There is no call for reloading or even modifying values.
I've written a DBMessageResources, and working on XMLMessageResources, there seems to be an cache issue, so (currently) I am not able to modify a value in the database and see the change on the web page, unless the session expires and the user gets a new one. You'll probably want to roll your own and add it as a plugin.....but then this will require changes to your code (undesireable from a component add-on standpoint). Good luck and let me know if you find anything. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Andy Kriger [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 17, 2002 11:43 AM > To: Struts Users Mailing List > Subject: refreshing application properties > > > I have a webapp running under Resin using Struts. I am storing message > strings and SQL queries in an application properties file. I have a class > that extends Action. It does... > MessageResources messages=getResources(); > String msg = messages.getMessage("myString"); > > I would like to be able to make changes to the properties file while the > appserver is running and have the changes be used by my classes and JSPs > (w/o having to restart the appserver). However, when I make these changes > and then reload the page, these changes are not propogated to the class or > the JSP that uses the class. I have tried removing all java & class files > generated from compiling the JSPs from the work/_web directory > but that did > not work. > > Has anyone had any experience doing this? > Apologies if this is Resin-related, not Struts-related. > > thx > andy > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

