What is ServletContext() and what is its use?

Answer Posted / anjan

Assume that ServletContext is shared momeroy for all
servelts which are existed in a web application,

we can place an object on to the servletcontext, and that
can uses all other servlets which are exited in the web
application.

Is This Answer Correct ?    153 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the phases of a servlet life cycle?

622


How the typical servlet code look like ?

639


What are the two important api's in for servlets?

590


List the Different types of servlet?

589


Which protocol will be used by browser and servlet to communicate

584






Explain mvc pattern.

594


Explain the jar and war files in servlet?

557


What are the uses of servlet and what is servlet chaining?

563


Define the servlet mapping.

549


Explain the difference between a web server and a web container?

520


Tell the new features added in servletrequest interface i.e. Servlet 2.4

577


What are the types of protocols supported by httpservlet ?

708


What is http servlet in java?

566


List some life cycle methods of a servlet.

592


Who is responsible to create the object of servlet?

723