tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dov Rosenberg <dov.rosenb...@conviveon.com>
Subject Re: Windows Environment Variables
Date Mon, 04 Oct 2004 12:25:46 GMT
The web.xml file is located in the /WEB-INF. Inside the <web-app> element
you can add multiple <context-param> elements. Each context parameter has a
name/value element nested inside. Like :

<web-app>
...
<context-param>

        <param-name>DomainName</param-name>

        <param-value>demo</param-value>

    </context-param>
...
</web-app>

You can access the context parameters using
ServletConfig.getServletContext().getInitParameter() inside your servlet.



-- 
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message