Simplest way: whine and moan at Sun to put in deployment-level environment
variables.
Real way: use property files, and put your custom properties in the
classpath. (i.e., in the application lib dir, or the application server lib
dir, or even higher, if you like.)
>From: chris brown <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Deploying a web app as a war file then supplying init params
>Date: Thu, 7 Jun 2001 10:46:58 +0200
>
>Hello,
>
>I'm developing a web app which I plan to deploy on several systems. I'm
>trying to avoid hard-coding anything into the app, so for example database
>connections, log file paths, etc. are specified as init-params on the
>appropriate servlets.
>
>When I deploy this as a "war" file (web archive), I'd like it if the
>administrator of the system where it's being deployed can modify the init
>params WITHOUT unarchiving / decompressing the archive (especially I need
>to
>sign or otherwise encrypt the archive). If not, how else can I design an
>app so that it's portable and easy to deploy?
>
>Thanks,
>Chris
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets