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 use of servletconfig interface?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is difference between jsp and servlet?
What are the functions of Servlet container?
What is a servlet-to-servlet communcation?
Explain the lifecycle of a servlet?
Differentiate between the web server and application server?
How we can create war file in servlet?
What is the difference between encodeRedirectUrl and encodeURL?
What are the key methods that are involved in processing of http servlets?
How can we create deadlock situation in servlet?
How can the session in servlet be destroyed?
Explain the difference between servlet and cgi?
Define declaration.
How can the referrer and the target urls be used in servlet?