What is the difference between servlet config and servlet
context.

Answer Posted / mamta singh

Servlet config is a private area for every servlet.Any
variable stored there is accessible to only that servlet
while sevlet context is a shared area for every servlet in
an application.In an aaplication every servlet can access
the variable stored in servlet context.

Is This Answer Correct ?    203 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can call a jsp from the servlet?

512


What is the GenericServlet class?

577


Is tomcat a servlet container?

551


What is the servlet?

602


What are advantages of servlets over cgi?

595






Can filter be used as request or response?

528


How to get the path of servlet in the server?

517


How to generate the server side programming and the advantages of it over the other languages?

536


How do we call one servlet from another servlet?

571


Why the concept of single thread model interface is used?

530


Which java application server is the best?

521


Describe in brief RequestDespatcher?

571


Write a program to show the functionality of doget and dopost method?

627


What is war file?

554


Explain jsessionid?

598