Bret, Two questions: 1) Are you using Tomcat 5? 2) If so are you using the Tomcat-Deployer to deploy your application?
If you answer yes to both, then this is probably a good foundation for a solution to your problem. Let me explain. The Tomcat deployer uses an Ant script and a associated properties file to take your war file (in unzipped format) compile it and then deploy it to Tomcat. We made some simple modificaitons to Tomcat-Deployer "build.xml" script and "deployer.properties" file to do additional customization before/during the JSP compilation process. The customization we do sounds similar to what you want to do - set directory names, links, etc. custom for that site/customer. The Ant build.xml would be customized just once and work everywhere. The properties in deployer.properties (or an alternate properties file of your choosing) would be customized once for each customer/site. Then each time you installed an updated war file the prior customizations would be "remembered" so to speak. Hope that was clear and it helps. Even if you are not using Tomcat, a similar approach should work with other App servers. Using an Ant script to unzip, customize and then rejar the webapp should be pretty straightforward. - Richard -----Original Message----- From: Bret Waldow [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 10:56 PM To: [EMAIL PROTECTED] Subject: I need a pointer about persistent info for my servlet, please We are deploying a servlet front end to an existing application. When the application is installed, the user picks some parameters, like the install directory, that aren't known to us when we make the .WAR file we deploy from. However, our servlet needs to know this, and it needs to know it in a way that survives redeployment of the servlet from the .WAR file - so I can't put it into the WEB-INF/web.xml file, as this will be overwritten when the servlet is redeployed in Tomcat. During product installation, where can I write the information the user chooses so that it will always be available to our servlet? (And in what form, please?) I've read about a tomcat/conf/Catalina/localhost/<servletname>.xml file, but I have only seen the examples for the built-in Tomcat apps, and those don't show examples of <param...something> for me to use. Can anyone point me to something that I can use for this? Thanks, Bret --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]