This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes  what is servletconfig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark " what is servletconfig" Watch " what is servletconfig" New topic

what is servletconfig

nitin tonk

Joined: Nov 02, 2004
Posts: 7
what is servletconfig.for what purpose it is use .how can use servlet config.plese send me some code of it.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12769
The best way to learn about the ServletConfig class is to read the JavaDocs and one of the many servlet tutorials such as this one.
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
ServletConfig object is a configuration object.
Using this, our servlet can access initialization parameters which we declare on web.xml

Correct me if i am wrong..
It is sorta covered in the JavaRanch Style Guide.
subject: what is servletconfig