On Tue, 8 Jul 2003, Rajesh Khater wrote:
> Date: Tue, 8 Jul 2003 18:23:15 +0530 > From: Rajesh Khater <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Reloading mappings > > > Hi, > > I need to get hold of the default struts-config.xml which contains the > mapping for ActionServlet to reload the struts-config.xml dynamically on > change. > > Where can I get that ?? > Alternatively, can somebody send me what should I put in > struts-config.xml to enable dynamic reloading of mappings ? > Struts 1.1 does not support dynamic reloading of mappings (or any other config information) for two basic reasons: * The in-memory data structures are frozen, so they don't need to be synchronized when they are read (which happens a LOT). * Reloading the configuration information is only half the battle -- you're also going to want to reload recompiled Action and form bean classes, and there is absolutely nothing Struts can do to help you with that. You should really be using the application reload facilities of your servlet container to do this sort of thing. I typically develop against Tomcat, and use the custom Ant tasks to dynamically install, reload, and remove an app while Tomcat is running. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html > Thanks, > Rajesh. Craig > > **************************Disclaimer************************************ > > Information contained in this E-MAIL being proprietary to Wipro Limited is > 'privileged' and 'confidential' and intended for use only by the individual > or entity to which it is addressed. You are notified that any use, copying > or dissemination of the information contained in the E-MAIL in any manner > whatsoever is strictly prohibited. > > *************************************************************************** > > --------------------------------------------------------------------- > 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]