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
What is the need of servlet filters?
What is Servlet API used for connecting database?
What is meant by a servlet?
What is cgi?
Why do we have servlet listeners?
Describe servlet?
Is it possible to have a constructor inside the servlet?
What's the architecture of a servlet package?
Write a program to show the functionality of servlets.
Tell us something about servletcontext interface.
What's the difference between servlets and applets?
What are the different methods involved in generic servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
Explain how does JSP handle run-time exceptions?
If a servlet is not properly initialized, what exception may be thrown?