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

How we can get ip address of client in servlet?

719


What do you mean by url pattern in servlet?

799


What is the difference between Difference between doGet() and doPost()?

943


What is the life-cycle of servlets?

828


Explain load on start-up and its importance?

800






Why do we have servlet wrapper classes?

761


What is java servlet?

778


What is the use of attribute in servlets?

748


What do you mean by filter in servlet?

715


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

760


Why the concept of single thread model interface is used?

713


How native code can be used in a servlet?

3685


how the HTML data stored in web server?

2156


What is the difference between get and post methods?

760


Is servlet a framework?

723