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
What methodology can be followed to store more number of objects in a remote server?
Is servlet synchronized?
Can you send an authentication error from a servlet?
What do you understand by mime type?
What is meant by Servlet? What are the parameters of service method?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
How to generate the server side programming and the advantages of it over the other languages?
Define the lifecycle for executing a jsp page.
Differentiate between the web server and application server?
What do you mean by mime type?
Which event is fired at the time of session creation and destroy?
How the servlet is loaded?
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()?
Why servlet is used as controller ? Not JSP? I want complete explation?
What are the differences between servlet context vs servlet config?