You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Scott Purcell <sp...@vertisinc.com> on 2005/03/03 19:03:32 UTC
Re-initialize ActionServlet Help
Hello,
I posted this earlier today and could really use some help here. As I am developing I have to keep stopping and re-starting my tomcat, and it is killing me. I am on Tomcat 4.0xxx and don't have time to go to 5, where I think individual web-apps can be restarted.
Anyway, if anyone knows of any way to reinitialize the ActionServlet to re-read the struts-config.xml file, please, please let me know.
Thanks,
Scott
-----Original Message-----
From: Scott Purcell [mailto:spurcell@vertisinc.com]
Sent: Thursday, March 03, 2005 8:30 AM
To: user@struts.apache.org
Subject: Reloading Configuration File
Hello,
I was reading from my O'Reilly struts book last night, and it has a section on "Reloading The Configuration Files" pp 102. Because I am in development, I am constantly updating the config file and I have to keep stopping and starting my tomcat, I found the section interesting, but it gives no explanation on how to do this. It says one approach is to create a struts action that will reinitialize the ActionServlet?
Does this mean I just need to recompile the ActionServlet that came with stuts, or do I need to subclass the ActionServlet and compile that. It looks like once you compile the ActionServlet, that it will reread the config?
Does anyone have any knowledge in this area?
Thanks,
Scott K Purcell | Developer | VERTIS |
555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
314.588.0720 Ext:1320 | spurcell@vertisinc.com | http://www.vertisinc.com <http://www.vertisinc.com/>
Vertis is the premier provider of targeted advertising, media, and
marketing services that drive consumers to marketers more effectively.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org