This content has been marked as final.
Show 1 reply
-
1. Re: Passing startup parameters to war
dward2 Dec 19, 2001 10:38 AM (in response to tdejongh)create an "init" servlet that has a <load-on-startup> tag in the web.xml so it's init method gets called on war deploy. Then, in your init method, read in a config properties file (or xml, or whatever) off the file system someplace. The path to the config file can be an <init-param> under in web.xml, but the contents of the file can be different for each of your different environments.