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
What's the use of servletcontext?
What is the purpose of requestdispatcher interface?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Define declaration.
What are the types of protocols supported by httpservlet ?
Which java application server is the best?
Write all the phases defined in servlet life cycle?
Whats the advantages using servlets over using CGI?
What are the servlet events?
What is servlet interface?
How can we refresh automatically when new data has entered the database?
Tell us something about servletconfig interface.
Why do we have servlet wrapper classes?
What is URL Encoding?
Which httpsession object is used to view and manipulate information about a session?