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 session variable in servlets?

564


What is URL Encoding?

617


List out the difference between ServletConfig and ServletContext?

600


Explain the difference between generic servlet and http servlet?

539


What is servlet attributes and their scope?

594






How can we achieve transport layer security for our web application?

567


Explain get and post.

649


How we can call a jsp from the servlet?

531


What are the new features added to servlet 2.5?

592


How can we upload the file to the server using servlet?

544


Can you use javascript in servlets?

598


Explain url encoding in servlet?

576


Explain how to improve Servlet Performance?

594


What is servlet in tomcat?

557


Can filter be used as request or response?

540