Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?
Answer Posted / katamraju
Yes, some difference is there b/w servletconfig , servlet
context and session.
ServletContext:This is an interface created by webcontainer
based on class provided by webcontainer wendor,the
webcontainer will be create ServletContext Obj for the whole
web-application.
ServletConfig:This also an inteface and created by
webcontainer based on class provided by webcontainer vendor,
webcontainer creates servlet config obj forevery resource
that is available in webapplication.
session:session can be used to develop stateful application.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How to get the path of servlet in the server?
Write a program to show the functionality of doget and dopost method?
What is servlet api used for conneting database?
What is a deployment descriptor?
How can the referrer and the target urls be used in servlet?
How do you find out what client machine is making a request to your servlet
What is the use of attribute in servlets?
Explain the difference between a web server and a web container?
Explain the different ways for servlet authentication?
Which are the different ways you can communicate between servlets?
What is new in ServletRequest interface ? (Servlet 2.4)
Why the concept of single thread model interface is used?
What is meant by a servlet?
How we can call a jsp from the servlet?
How to get the actual path of servlet in server?