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 the difference between using getSession(true) and getSession(false) methods?
Why filter is used in servlet?
How can you push data from an Applet to a Servlet?
Can you call a jsp from the servlet?
What's the difference between servlets and applets?
Explain the jar and war files in servlet?
What is the functionality of actionservlet and requestprocessor?
What is the disadvantage of cookies?
what is multiple server?
What if you need to span your transaction across multiple servlet invocations?
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 cgi?
When to use doget() and when dopost()?
How can you run a servlet program?
What's the architecture of a servlet package?