In your <servlet> section after the <servlet-class> entity you can put in 0,
1 or more <init-param> entities
...
<servlet>
....
<init-param>
        <param-name>dns_server</param-name>
        <param-value>myDNS</param-value>
</init-value>
...
</servlet>
...

In your code for the servlet init method you get passed a ServletConfig and
that has a method getInitParameter which takes the param-name as a string
and returns the param-value also as a string


Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-----Original Message-----
From: IvanLatysh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 5:39 PM
To: Tomcat Apache
Subject: Question about web.xml


Hi All.

I have small problem and I couldn't decide what to do.
My application (JSP + Servelt) using dns server to perform dns lookup.
I want to put dns server name into some external configuration file for
convience.
It seems that file web.xml could be used for this.

Please help with idea where to put some configuration parameters for
application.

Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02
 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to