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 is the capacity the doget can send to the server?

588


What is servlet container?

671


What is the difference between sendredirect() and forward() in a servlet?

531


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

584


What's the use of servletcontext?

690






Explain Action Servlet?

634


How a servlet is unloaded?

599


What is api in servlet?

533


What is the major difference between context parameter and context attribute?

603


What is a servlet engine?

554


How can we include static files in the jsp page?

621


What is servlet api used for conneting database?

710


Explain is servlet mapping?

592


Can we use the constructor, instead of init(), to initialize servlet?

595


Is java servlet still used?

603