What is the difference between servlet config and servlet
context.
Answer Posted / suresh g
Question: What is the difference between servlet config and servlet context?
Servlet Context:
Servlet context is communication between server side .Every application has only one servlet context and is accessible to all action resource of that application.
Serclet Config:
Servlet Config is objcet created after a servlet is instantiation and its default constructor is read .It is create to pass initialization information the servlet.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is getservletcontext?
Describe some assignments that are executed by servlet container?
Can we override servlet service method?
What are the differences between the servletconfig interface and the servletcontext interface?
Can we use the constructor, instead of init(), to initialize servlet?
Explain the servlet filter.
Which is better jsp or servlet?
Describe in brief RequestDespatcher?
What are the differences between servlet context vs servlet config?
What is the dispatcher servlet?
How do you create a cookie using servlet?
Difference between forward() method and sendredirect() method ?
What is servlet mapping?
Define declaration.
What are some advantages of storing session state in cookies?