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 life cycle methods of a servlet?
How to create war file?
What is Request Dispatcher?
How can you run a servlet program?
Explain the lifecycle of a servlet?
How will you pass values from HTML page to the servlet?
Why do we have servlet wrapper classes?
How the typical servlet code look like ?
What is servlet and list its types?
Tell us something about servletconfig interface.
What are sessions in servlets?
How can we include static files in the jsp page?
Explain in brief the directory structure of a web application?
What’s the difference between forward() and sendredirect() methods?
What are the exceptions thrown by servlets? Why?