can we create more than ServletContext and ServletConfig in
your application

Answer Posted / sunstar

Servlet Context is used per Web apllication so we can't use
more than one Context,Servlet Config is per servlet or per
Jsp so you can use the more than one Config.....:-)

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cgi?

594


What are all the ways for session tracking?

593


How a servlet is unloaded?

589


What are different methods of session management in servlets?

774


Explain the difference between jsp and servlet?

589






What mechanisms are used by a Servlet Container to maintain session information?

666


Why is Servlet so popular?

613


What is meant by a web application

537


What is cookies in servlet with example?

518


What is servlet attributes and their scope?

594


What do you mean by annotations in servlet?

580


How do you design microservices?

623


explain the advantages of servlet life cycle?

555


What is session?

640


Why is httpservlet declared abstract?

582