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 if we pass negative value in load-on-startup?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What is a generic servlet?
What exactly is a servlet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is ServletContext object?
What is servlet? Explain
How can I send user authentication information while making URL Connection?
Can you create a deadlock condition on a servlet?
What is cookies in servlet with example?
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 difference between cookies and httpsession?
How can we create deadlock situation in servlet?
What is meant by a servlet?