dcsimg
How works the "/admin/reload.do" in struts?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, February 27, 2002 08:40 AM

Hi!


Looking in the struts documentation i found the class ReloadAction, I though
that this class reload the struts-config.xml and the application resources without restart the appserver (in my case Tomcat 4.0)...

I want do this because i want modify the MessagesResources file, but when i modify the file and call /admin/reload.do, it updates everything except the MessagesResources file!!

I`m doing something wrong or what?

Please help Me!

PS: There is another way to do it? I mean, update the MessagesResources file?

Re: How works the "/admin/reload.do" in struts?

Posted By:   Ted_Husted  
Posted On:   Saturday, March 2, 2002 08:36 AM


The ReloadAction reloads and reparses the Struts
configuration files. The resource bundle used by the
MessageResource file is not actually part of the configuration, so it is not reloaded. Some containers
do automatically reload property files, but this is not
a Struts specific features. It would apply to any
Web application using standard resource bundles.



A question to ask in the Tomcat circles might then be
"How to configure Tomcat to reload resource bundles
when they change.".



HTH -Ted

About | Sitemap | Contact