Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?

Answer Posted / nisha

Servlet config is one per servlet and servlet context is one for
the whole webapplication.

Servlet config is used to pass deploy time information to servlet
where servlet context can be used to get information about the
container,server.

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of inter-servlet communication?

815


Define the life cycle of a servlets.

803


How a servlet is unloaded?

819


What is the difference between the include() and forward() methods?

811


Differentiate between the web server and application server?

776


What are the kinds of http requests?

806


What are the advantages of servlets over traditional cgi?

826


What is cookies in servlet with example?

734


What is new in ServletRequest interface ? (Servlet 2.4)

799


Why servlet is used as controller ? Not JSP? I want complete explation?

901


What is the purpose of dispatcherservlet properties?

735


What are session variable in servlets?

781


Why do we need a constructor in a servlet if we use the init method?

744


Tell us something about servletconfig interface.

774


What are the life cycle methods of a servlet?

790