What is the difference between servlet config and servlet
context.

Answer Posted / v.tulasiprasad

servlet config is used to obtain configuration data when it
is loaded in to the application server.
for each servlet servlet config will be indipendent and the
configuration of a servlet is intialized in the servlet
config file.

servlet context is used to obtain the information about the
environment in which it is running.one application have only
one servlet context file.through this servlet context file
we can acces servlets in that application.

Is This Answer Correct ?    10 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the advantages of servlet over cgi?

603


What are all the ways for session tracking?

591


How can you start a jta transaction from a servlet deployed on jboss?

672


Which interface should be implemented by all servlets?

696


What is the major difference between context parameter and context attribute?

591






What do you mean by annotations in servlet?

578


What are the new features added to servlet 2.5?

590


How do you communicate in between Applets and Servlets?

589


What is the difference between the http servlet and generic servlet?

599


What’s the use of the servlet wrapper classes??

636


Why is a constructor needed in a servlet even if we use the init method?

600


What is meant by servlet? What are the parameters of the service method?

568


What is the difference in between the httpservlet and generic servlet?

599


What is the difference between get and post methods?

599


Which interface must be implemented by all servlets?

789