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
Differentiate between the get and post method
What is the process to implement doget and dopost methods?
What are different Authentication options available in Servlets.
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What are all the protocols supported by httpservlet?
How can we upload the file to the server using servlet?
What is the need of servlet filters?
What are the types of Session Tracking ?
What is the use of attribute in servlets?
How to handle exceptions thrown by application with another servlet?
What is servlet instance?
What are the benefits of using servlet over cgi?
How will two or three servlets interact or communicate with each other?
List some life cycle methods of a servlet.
What is the use of request dispatcher interface?