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 ServletConfig Object 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 "ServletConfig Object" Watch "ServletConfig Object" New topic
Author

ServletConfig Object

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
What is servletConfig Object?
What information is encapsulated in ServletConfig Object?
Could someone explain on getInitParameter(String) method?
Tom P
Ranch Hand

Joined: May 06, 2000
Posts: 88
The ServletConfig class is used by the servlet container to communicate information to the servlet. Initialization parameters, for example, that the servlet engine wants to pass to the servlet are passed in the ServletConfig object. It also paases the ServletContext object which you can use to find the API version that the servlet is running under and other information about the Servlet Container.
The getInitParameter() method passes initialization parameters that the Servlet Container wants to provide to the servlet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletConfig Object
 
Similar Threads
ServletConfig Interface
what if we override the init(ServletConfig) and dont call super()
passing ServletContext
how to get the servletconfig object in servlets?
ServletConfig