• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the use of servletConfig

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is the only use of servletconfig is Initializing the servlet ?
what are the others ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a hint:

When wondering about the function of a Java class or interface, examine the JavaDocs.

In this case you will see that ServletConfig has methods to let your servlet get at init parameters and the ServletContext.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!