What is the difference between servlet config and servlet
context.
Answer Posted / m.sridharreddy
Servlet context is a context for all servlets under the web
application.in the web application there is only one
context.and all the servlets communicate each other through
context and it uses context parameters
In the web application each servlet have one servlet config
object it uses init parameters.
| Is This Answer Correct ? | 41 Yes | 12 No |
Post New Answer View All Answers
What is servlet mapping?
How do I use cookies to store session state on the client?
What is servlet lazy loading?
If a servlet is not properly initialized, what exception may be thrown?
Why are servlets used?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
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()?
What do you mean by httpservlet and how it is different from the genericservlet?
What is pure servlet?
Describe the phases of servlet lifecycle?
Explain the concept of ssi ?
What is servlet api used for conneting database?
How can you use a servlet to generate a plain text instead of html?
What is servlet instance?
Why the container loads server at the application startup and how?