> From: Søren Blidorf [mailto:so...@nolas.dk] > Subject: ROOT.war - how to access web.xml > > I have deployed my ROOT.war file. Is there any way to access > the web.xml. > > I save db login info in it and I would like to be able to > deploy the same ROOT.war file on different sites and only > change the web.xml after.
Don't put the site-specific parameters in web.xml. Instead, nest them inside a <Context> element in a companion file to be located in conf/Catalina/[host]/ROOT.xml on each server. Use the <Parameter> or <Environment> elements as appropriate. Look here for details: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Environment%20Entries - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org