You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Press, Michael" <Mi...@Artesia.com> on 2002/02/05 20:32:31 UTC

How can I get Struts to re-read the config file?

I would like for my webapp to be able to re-read struts-config.xml without
having to bounce the servlet container (Tomcat 4.0.1) or bounce/reload my
webapp.  Is this possible?
 
Thanks,
Michael

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How can I get Struts to re-read the config file?

Posted by Robert Scaduto <rs...@douwantit.com>.
Struts includes a ReloadAction that will reload the struts-config.xml and
the ApplicationResources.

Just include...

<action path="/admin/reload" type="org.apache.struts.actions.ReloadAction"/>

in your struts config.   To re-load, navigate your browser to
<app-path>/admin/reload.do

That should do it.

-Rob


-----Original Message-----
From: Press, Michael [mailto:Michael.Press@Artesia.com]
Sent: Tuesday, February 05, 2002 2:33 PM
To: 'struts-user@jakarta.apache.org'
Subject: How can I get Struts to re-read the config file?


I would like for my webapp to be able to re-read struts-config.xml without
having to bounce the servlet container (Tomcat 4.0.1) or bounce/reload my
webapp.  Is this possible?

Thanks,
Michael

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>