Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?

Answer Posted / thennavan.m

YES.

ServletContext(): To communicate with the Servlet Container.
Eg: What server to running on the
Environment.Then when sever is
started,who is login the server all
the information to store the
"Event log"file ie log4j.

ServletConfig(): Pass the configuration information to the
Server to the servlet.

Session(): Session is a Object to track
the user interaction with
the web application across multiple
HttpSession.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the session in servlet be destroyed?

638


What is meant by session? Tell me something about httpsession class?

596


what is servlet chaining?

621


How many objects of a servlet is created?

788


What is the difference between Difference between doGet() and doPost()?

754






Describe servlet?

575


What are the advantages of servlets over traditional cgi?

622


How can we invoke another servlet in a different application?

703


What is called Scriptlet?

561


Whether we can get deadlock situation in servlets?

572


Explain web application directory arrangement?

585


Which event is fired at the time of project deployment and undeployment?

784


What is the difference between genericservlet and httpservlet

584


How printwriter is different from servletoutputstream?

577


What is context in servlet?

537