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
Why do we use sendredirect() method?
How can you start a jta transaction from a servlet deployed on jboss?
Explain the difference between a web server and a web container?
What are the different types of servlets?
What are some advantages of storing session state in cookies?
What is the use of servletconfig interface?
Whether we can get deadlock situation in servlets?
What is the difference between sendredirect() and forward() in a servlet?
What is Servlets and explain the advantages of Servlet life cycle?
Why do we need a constructor in a servlet if we use the init method?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are the uses of servlet and what is servlet chaining?
What is servlet looping or chaining?
What is the GenericServlet class?
Why is httpservlet declared abstract?