It's not a secret anymore!
The moose likes Servlets and the fly likes servlet config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet config" Watch "servlet config" New topic

servlet config

Mahender allam

Joined: Apr 19, 2007
Posts: 9
what is servletcong &servlet context?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

There is no such thing as a servletcong. For other classes please reference the API documentation for the respective classes.

[Asking smart questions] [About Bear] [Books by Bear]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

see Servlets FAQ definitely give you some idea on it.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
NareshA WaswaniA

Joined: Feb 26, 2007
Posts: 9
ServletCongig object is per servlet or jsp which contains specifiv information about that servlet or jsp. you can pass this information in the web.xml file's <init-param> tag of the <servlet-tag>.

ServletContext object for the application per JVM. You can pass input to this object from the web.xml file using the <context-param> in the <web-app> tag. This object can be accessed by all the web components as it is one per JVM.

ServletConfig object of one servlet or jsp can not be accessed by other web component.

Any more doubts.
I agree. Here's the link:
subject: servlet config
It's not a secret anymore!