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

What is the difference between jsp and servlet life cycle?

687


How to get the current httpsession object?

649


What’s the use of the servlet wrapper classes??

638


Which java application server is the best?

545


Can we refresh servlet in client and server side automatically?

591






What are session variable in servlets?

564


Explain the differences between jsp and servlet.

539


What is setattribute in servlet?

554


Describe some assignments that are executed by servlet container?

579


What is the use of attribute in servlets?

540


What is the difference between forward () and sendredirect () functions in servlet? Explain

543


What is cgi and what are its drawbacks?

551


What do you mean by annotations in servlet?

580


What is ServletContext object?

643


What is the web server used for running the Servlets?

579