If your servlet engine is tomcat, you can define in the configuration file
for your servlet, web.xml as:
...
<init-param>
<param-name>MYSYSTEM</param-name>
<param-value>file://we/weed/weew</param-value>
</init-param>
...
and access it through getInitParameters()
I'm sure other servlet engines have similar mechanisms.
Vinod Lamba wrote:
>
> Hi All,
>
> How you can get environment variable other than jvm's
> while you are running a servlet.
>
> Say you set a variable "MYSYSTEM=file://we/weew" and now u want it thru
> ur
> servlet.
>
--
Diego Pons Pharos Consulting LLC
[EMAIL PROTECTED] Los Angeles, CA
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]