File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletConifg

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
Can anyone explain me about ServletConfig interface?
 
Anthony Watson
Ranch Hand
Posts: 327
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServletConfig is used for 2 things: 1) get a specific servlet's initialization parameters out of the deployment descriptor 2) Get a reference to the ServletContext object
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can look at it as a handle to talk to the container hosting the servlet.
 
George Thomson
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using ServletConfig we can retrive initialization parameters by two ways...
by calling directly getServletConfig.getInitParameter() or getServletContext.getServletConfig.getInitParameter() , depends upon the situation we use either of these
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic