Difference between ServletContext and ServletConfig?

ServletConfig: 
  • One ServletConfig Object is created per servlet
  • It can be used to access ServletContext
  • Parameters are configured in DD(deployment description)
ServletContext
  • One ServletContext will be created per web application.
  • Can be used to access web app parameter.
  • Can be used to get server Info.


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email