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
How does java thread pool work?
What is the difference between genericservlet and httpservlet
What is the use of send redirect () method?
Write a hello world program using servlets.
When jsessionid is created?
Explain the difference between jsp and servlet?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What are the different methods of session management in servlets?
What is the purpose of requestdispatcher interface?
what is multiple server?
Which java application server is the best?
Who is responsible for writing a constructor?
What is servlet attributes and their scope?
Is it good idea to create servlet constructor?
Explain the difference between a web server and a web container?