what is the difference between ServletContext and
ServletConfig

Answer Posted / saurabh kandpal

servletcontext is for a individual servlet

servlet config is for the whole webapplication which may
include diffrent servlet context

Is This Answer Correct ?    3 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why don't we write a constructor in a servlet?

799


How do servlets work?

776


When Servlet is unloaded?

849


Which method of the httpservletrequest object is used?

795


Can you explain in detail 'javax.servlet' package?

769


When servlet is loaded?

811


Why do we need servlet filter?

791


What is getservletcontext?

743


Define the lifecycle for executing a jsp page.

854


What do you mean by session tracking?

918


What are the annotations used in servlet 3?

779


What are the features added in Servlet 2.5?

973


What do you mean by servlet?

917


How the servlet is loaded?

812


Does servlet have main method?

918