Hi ,
The Intial params set in web.xml are meant for ServletConfig to read in a sevlet. I f u want to read them from non servlet class
best approch would be use Resouce Bundel class and a Properties file.
 
-satya
-----Original Message-----
From: syed huda [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 3:29 AM
To: [EMAIL PROTECTED]
Subject: reading web.xml from non servlet class

 
I want to read few values like jdbcdriver class, database url etc. from a helper/utility class which is not a servlet. Is it possible to put these values in web.xml and read it from a non servlet class? If not what might be best way to do it?
 
 
Thanks,

Reply via email to