What is the difference between servlet config and servlet
context.

Answer Posted / vijay kaarmani

Both ServletConfig and ServletContext are configuration objects used by servlet container to initialize various init parameters for a web application. However they differ in terms of the scope and availability of init parameters defined by both of them.

Please see http://javashiksha.com/servlet-jsp/difference-between-servlet-config-and-servlet-context.html for more details

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does servlet have main method?

890


how the HTML data stored in web server?

2177


How to get the path of servlet in the server?

712


What are the drawbacks of cgi?

726


What is http servlet?

777


What is meant by Servlet? What are the parameters of service method?

795


Is that servlet is pure java object or not?

805


What are all the protocols supported by httpservlet?

843


Difference between httpservlet and generic servlets?

811


How the servlet is loaded?

779


What is war file?

769


How is a servlet implemented in code?

773


Can you explain in detail 'javax.servlet' package?

748


Write a program to show the functionality of doget and dopost method?

877


Can you use javascript in servlets?

795