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 the difference between portlet and servlet?

722


What is the servletconfig object?

766


What if you need to span your transaction across multiple servlet invocations?

813


What is the inter-servlet communication?

935


How do you load an image in a Servlet?

883


What is servlet and its use?

833


Is servlet a server side scripting language?

831


How does tomcat servlet container work?

829


What are the drawbacks of cgi?

749


What do you mean by servlet context?

807


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2525


Explain session tracking and its importance?

751


Where do you define dispatcherservlet?

759


Explain request dispatcher and its methods.

785


What is the difference in between the httpservlet and generic servlet?

880