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 servlet container?
How the JSP file will be executed on the Server side?
What exactly are the functions of servlet?
What are the functions of the servlet container?
Who is responsible to create the object of servlet?
Why do we have servlet filters?
Explain the differences between jsp and servlet.
What are different ways for authentication of servlet?
How is an application exception handling is done using a servlet?
Why are servlets used?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is called servlet container?
What is the structure of the http response
How servlets are deployed in java?
What is meant by a servlet?