wood burning stoves*
The moose likes Servlets and the fly likes what is servlet config 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 "what is servlet config" Watch "what is servlet config" New topic
Author

what is servlet config

Deepthi Tanguturi
Greenhorn

Joined: Sep 06, 2011
Posts: 17
ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.
The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

So what is your question?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Deepthi Tanguturi
Greenhorn

Joined: Sep 06, 2011
Posts: 17
Bear Bibeault wrote:So what is your question?

when to use servlet config object
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Usually in the init() life-cycle method to process the servlet's init parameters
 
jQuery in Action, 2nd edition
 
subject: what is servlet config
 
Similar Threads
init() method doubt?
Servlet's "configuration" parameters
ServletConfig Object
ServletConfig Object
about ServletContext and ServletConfig