What is the difference between servlet config and servlet
context.

Answer Posted / gaurav chauhan

You can take it like as every servlet has the same
ServletContext but every servlet has its own ServletConfig.

For Example: If you want the name of your company and email
address appear in all pages of your web applications then
you use ServletContext.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by cgi in servlet?

791


How can we invoke another servlet in a different application?

886


Who is responsible to create the object of servlet?

893


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

732


Difference between GET and POST?

871






What is the purpose of requestdispatcher interface?

782


What are the various ways of session supervision in servlets?

715


Why servlet is faster than jsp?

727


How does tomcat servlet container work?

784


What do you mean by url pattern in servlet?

797


What is ServletContext object?

811


Can you refresh servlet in client and server-side automatically?

781


Why do we have servlet wrapper classes?

759


What is the difference between servlet and jsp?

780


What is the web server used for running the Servlets?

733