can we create more than ServletContext and ServletConfig in
your application

Answer Posted / vishal kumar

yes we can create more than one servletcontext for an
application.in case of distributed application,
application's part are deployed on different application
server so in this case every part of application has
different servlet context.so as a whole application consist
many servlet contect.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of Session Tracking ?

830


How do we share data using 'getservletcontext ()?

735


What is meant by a web application

733


Differentiate between the web server and application server?

743


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

739


What is setattribute in servlet?

741


How does tomcat servlet container work?

794


How we can create war file in servlet?

836


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

723


What do you mean by url pattern in servlet?

814


Should I override the service() method?

850


Explain the features are in servlet 3?

794


What is the difference between a generic servlet and http servlet?

701


Is servlet a server side scripting language?

791


What are the difference between RMI and Servlets?

1226