SV: ROOT.war - how to access web.xml
By the way. I also have info as init-param in my struts servlet configured in the web.xml So I guess I should just loose the getServlet.getInitParameter and just use getServletContext().getInitParameter??? By the way I dont have access to the conf. I guess I have access to ROOT or webapps. Can I put the context.xml fil there? -Oprindelig meddelelse- Fra: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sendt: 27. februar 2010 19:21 Til: Tomcat Users List Emne: RE: ROOT.war - how to access web.xml > 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 element in a companion file to be located in conf/Catalina/[host]/ROOT.xml on each server. Use the or elements as appropriate. Look here for details: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parame ters http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Environment%20En tries - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
SV: ROOT.war - how to access web.xml
Great. I'll try that. Thanks alot -Oprindelig meddelelse- Fra: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sendt: 27. februar 2010 19:21 Til: Tomcat Users List Emne: RE: ROOT.war - how to access web.xml > 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 element in a companion file to be located in conf/Catalina/[host]/ROOT.xml on each server. Use the or elements as appropriate. Look here for details: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parame ters http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Environment%20En tries - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
SV: ROOT.war - how to access web.xml
When it is deployed the only thing I see when I FTP the site is the ROOT.war file. -Oprindelig meddelelse- Fra: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Sendt: 27. februar 2010 19:10 Til: Tomcat Users List Emne: Re: ROOT.war - how to access web.xml 2010/2/27 Søren Blidorf : > Thanks, but I dont know what you mean. Assuming your war is being expanded, log in and edit the file. Or is that an incorrect assumption? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
SV: ROOT.war - how to access web.xml
Hi. Thanks, but I dont know what you mean. Kind of newbie in .war -Oprindelig meddelelse- Fra: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Sendt: 27. februar 2010 19:04 Til: Tomcat Users List Emne: Re: ROOT.war - how to access web.xml 2010/2/27 Søren Blidorf : > 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. ssh + vi should do it, eh? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org