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 GenericServlet class?
Differentiate between the get and post method
Write a program to show the functionality of doget and dopost method?
What is servlet lazy loading?
Explain how does JSP handle run-time exceptions?
What are the differences between forward() method and sendredirect() methods?
What are the types of servlets? Explain
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Which java application server is the best?
What is a java servlet?
Can you create a deadlock condition on a servlet?
What's the use of servletcontext?
If a servlet is not properly initialized, what exception may be thrown?
Which interface should be implemented by all servlets?
What is servlet instance?