What is ServletContext() and what is its use?

Answer Posted / ranjit

as soon as the java web application is
deployed into web container ,the first
object that container create is
servletcontext
This object is only one per web application
Every web component of web application
share this unique object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

673


What is setattribute in servlet?

634


What are session variable in servlets?

652


Explain the difference between servlet and cgi?

694


How native code can be used in a servlet?

3599






How can you push data from an Applet to a Servlet?

700


How do I support both get and post from the same servlet?

793


Explain load on start-up and its importance?

695


Explain the working of service() method of a servlet.

590


What are the uses of servlets?

701


What are all the protocols supported by httpservlet?

731


What is the use of servlet context?

618


Can you use javascript in servlets?

693


What is a server side include (ssi)

643


What is servlet and its life cycle?

659