Hello All,
Can you tell me what is the use of
context.getInitParameter() or context.getInitParameterNames() . where we should define init parameters for Context. (Referring to text in bold context is of type ServletContext.)
What is the difference between
context.getAttribute() or context.getAttributeNames() & getInitparameter() & getInitParameterNames()?
when i am using the following code on
Tomcat 5.0 it shows the outputas given below:
//====================================================================
OUTPUT in web browser
//====================================================================
Printing context-param elements from web.xml...
DB_Driver : sun.jdbc.odbc.JdbcOdbcDriver
DB_UserName : scott
DB_URL :
jdbc 
dbc:MyDataSource
DB_Password : tiger
Printing after manipulating the Context Prameters...
Company Name : SEED INFOTECH PVT. LTD. PUNE
Login Name : Seed
Password : null
//=========================================================================
It is not showing me any initparameter in the output can you help me to understand hoe init parametres can be specified & what would be its use?
Thanx in Advance
Shrinivas Mujumdar
[Code tags fixed]
[ August 27, 2005: Message edited by: David O'Meara ]