This guy explains and supplies the code on how to reload when a change is made to struts-config..

You could adapt it to deal with properties files (maybe)

http://www.brainysoftware.com/




On 4 Jun 2004, at 16:36, [EMAIL PROTECTED] wrote:

Thanx James, that was the point.
I have another question, is there a possibilty to clear the cache with a method call or something? I only need to change the MessageRessources from time to time...


----- Original Nachricht ----
Von:     James Mitchell <[EMAIL PROTECTED]>
An:      Struts Users Mailing List <[EMAIL PROTECTED]>
Datum:   04.06.2004 16:25
Betreff: Re: Reload Ressources on the fly


You cannot reload message resources without modifying Struts and building
your own custom version. This is due to MessageResources caching the
fomatted strings. This will happen with a custom MessageResources
implementation as well. The only way around it would be to clear the cache
with each call, which I don't recommend for anything outside of
development.



-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx


----- Original Message ----- From: "Raphaël di Cicco" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 04, 2004 10:10 AM Subject: Re: Reload Ressources on the fly


Eclipse (www.eclipse.org )does that for you.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 04, 2004 4:15 PM
Subject: Reload Ressources on the fly


Hi,
i am quite a newbie to struts and now i want to know, if there is a
chance
to reload the messageressources after a change without restarting the
server.
Greetz
Olli







--------------------------------------------------------------------- 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]



Reply via email to