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
Explain session tracking and its importance?
Difference between GET and POST?
What is ServletContext object?
What is the main purpose of java servlets?
What are the kinds of http requests?
What are the differences between the servletconfig interface and the servletcontext interface?
What are the uses of servlet
How httpservlet is different from the genericservlet?
What do you mean by a filter and how does it work?
Which httpsession object is used to view and manipulate information about a session?
How can you use a servlet to generate a plain text instead of html?
how the HTML data stored in web server?
What is the life cycle of a servlet?
Should I override the service() method?
How can we refresh automatically when new data is entered into the database?