• Post Reply Bookmark Topic Watch Topic
  • New Topic

about ServletContext and ServletConfig  RSS feed

 
vara prasad
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is ServletContext and what is ServletConfig exatly?
and what is the actual differances ?
and what is the uses of both ServletContext and ServletConfig?
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ServletConfig object exposes information specific to your servlet (like initialization parameters). The ServletContext basically represents your webapp.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!