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 are the exceptions thrown by servlets? Why?
What is a web container and what is its responsibility?
What do you mean by url pattern in servlet?
Write a simple servlet program to print the contents of html.
Explain the custom jsp tags and the beans.
What's the servlet interface?
Explain get and post.
What are the features added in Servlet 2.5?
How can you run a servlet program?
What do you mean by a filter and how does it work?
Is java servlet still used?
Which application server is best for java?
What is setattribute in servlet?
What is cookie in servlet?
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?