can we create more than ServletContext and ServletConfig in
your application

Answer Posted / narendhersharma

ServletContext which is managed by webcontainer, For the
whole web application only one servletcontext will be
there...

In ServletConfig , this is also managed by webcontainer,
for every request object one servletconfig object will be
there..

Is This Answer Correct ?    19 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which interface must be implemented by all servlets?

791


What is servlet and its advantages?

519


Explain the concept of ssi ?

593


What is servlet looping or chaining?

656


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

664






Is servlet a framework?

539


What is the difference between genericservlet and httpservlet

584


What is a server side include (ssi)

567


What are the phases of a servlet life cycle?

617


How are filters?

580


Why do we need servlet filter?

566


What is a cookie What is the difference between session and cookie

590


What is meant by cookies?

610


How does tomcat servlet container work?

592


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

576