what is the difference between ServletContext and
ServletConfig

Answer Posted / balu

yes ur correct Saurabh..

servletcontext scope is of total application..where as
servletconfig is only for the servlet....

servletcontext gets created when the server starts i.e when
the server reads the web.xml of the application which is
being deployed in the server...
where as servletconfig get created when the servletobject
gets created...

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between PrintWriter and ServletOutputStream?

1025


Which interface must be implemented by all servlets?

1065


What is called servlet container?

865


What is the life cycle of a servlet?

1157


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2486


How do cookies work in servlets?

828


What methodology can be followed to store more number of objects in a remote server?

2051


What are the jobs performed by servlets?

808


Explain the difference between generic servlet and http servlet?

765


Why session tracking is needed?

821


Explain session tracking and its importance?

769


What are some disadvantages of storing session state in cookies?

821


How do you define a servlet?

769


What is URL Encoding?

889


What is servlet and its life cycle?

885