On Thu, 16 May 2002 08:18, you wrote:
> I believe you can put them inside a property file as part of your WAR.
> Is that what you mean?
That will work, or you can do this as well:
On your web.xml fle declare:
<!-- Environment variable -->
<env-entry>
<description>My variable description</description>
<env-entry-name>myVariable</env-entry-name>
<env-entry-value>/usr/local/bin/stuff<env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
and from any of your servlet/action classes you can do the following to
retrieve the variables:
Context context = new InitialContext();
stuff = (String) context.lookup("java:comp/env/myVariable");
Regards,
--
Victor Hadianto
---------------
And in the heartbreak years that lie ahead, Be true to yourself and the
Grateful Dead. -- Joan Baez
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>