What is the difference between servlet config and servlet
context.
Answer Posted / sulthansheriff
Servlet Context :
In servlet programming, the servlet context is the
environment where the servlet runs. The servlet container
creates a ServletContext object that you can use to access
information about the servlet's environment.
ServletConfig:
A servlet configuration object used by a servlet container
used to pass information to a servlet during initialization.
Is This Answer Correct ? | 89 Yes | 27 No |
Post New Answer View All Answers
Is tomcat a servlet container?
What is the directory structure of a war file?
Why is init() method is used in servlets?
What is servlet looping or chaining?
What's the use of servletcontext?
What are the steps that are required to handle the multi-threading?
What are all the ways for session tracking?
What is the difference between Server and Container?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What are the jobs performed by servlets?
What is a servlet?
Explain the differences between jsp and servlet.
What are the functions of an intercepting filter?
What are the different methods of session management in servlets?