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

Can you use javascript in servlets?

604


What is the inter-servlet communication?

704


How do you deal property files in servlet?

606


What are the different session tracking techniques?

684


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

573






What is the effective way to make sure all the servlets are accessible only when user has a valid session?

572


What is the capacity the doget can send to the server?

578


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

586


What is webservlet?

539


If some new data has entered the database, explain how can a servlet refresh automatically?

739


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1747


How to read request headers from servlets?

564


What are the drawbacks of cgi?

572


What is cgi and what are its drawbacks?

553


Write a hello world program using servlets.

593