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
Whether thread can be used in servlets?
What is setattribute in servlet?
What is difference between get and post method?
Why session tracking is needed?
Explain the difference between a web server and a web container?
What is called Session Tracking?
Write all the phases defined in servlet life cycle?
What are the functions of the servlet container?
Why HttpServlet class is declared abstract?
What is the difference in between the httpservlet and generic servlet?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is servlet instance?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is the major difference between context parameter and context attribute?
What is the need of servlet filters?