what is the difference between ServletContext and
ServletConfig

Answer Posted / dhil

Saurabh Kandpal..

servletcontext is for the whole webapplication and
servletconfig for a individual servlet

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps that are required to handle the multi-threading?

599


When servlet object is created?

604


Tell us something about servletconfig interface.

584


Explain the custom jsp tags and the beans.

617


What is the process for chaining servlet?

613






Explain session tracking and its importance?

547


What is the directory structure of a war file?

715


Explain the steps involved in placing a servlet within a package?

573


Write all the phases defined in servlet life cycle?

589


Explain Action Servlet?

624


why we should override only no-agrs init() method.

680


How can we refresh automatically when new data has entered the database?

622


Can filter be used as request or response?

546


How do you design microservices?

625


What are the life cycle methods of the servlet?

579