• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletConfig

 
Don Bosco
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys correct me if i'm wrong.
When a servlet is deployed, the servlet engine will look at the web.xml file of the application and builds a ServletConfig object and passes this object to the init function.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct. ServletConfig has the servlet specific data from web.xml - ServletContext is also of interest in giving the "web application" specific data.
You can find the complete set of rules which answer all questions like this for the servlet and JSP environments at java.sun.com in the form of some big .pdf files.
 
Don Bosco
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic