This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "xml " Watch "xml " New topic
Author

xml

udita shah
Greenhorn

Joined: Feb 25, 2012
Posts: 2
<context-param>
<param-name>id1</param-name>
<param-value>com.mysql.jdbc.Driver</param-value>
</context-param>
<context-param>
<param-name>id2</param-name>
<param-value>jdbc:mysql://localhost:3306/Online</param-value>
</context-param>



what are context param???
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 507

context parameters are available to the entire scope of the web application, while init parameters are available in the context of a servlet or filter in the web application..

P:S: Please see these links, SearchFirst and UseAMeaningfulSubjectLine..


Regards, Prasad
SCJP 5 (93%)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: xml
 
Similar Threads
can web.xml data include contents from other xml file
Richfaces skins
How to register ContextLoaderListener ?
NullPointerException in Listener
Spring with Hibernate Integration