can we create more than ServletContext and ServletConfig in
your application

Answer Posted / ravi ranjan kumar rajnish

No, In case of ServletContext Bcoz there is one
ServletContext is for one for whole application.
But yes in case of ServletConfig, bcoz servletconfig is
servlet specific so it can more than one

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell the new features added in servletrequest interface i.e. Servlet 2.4

573


What are the advantages of servlets over traditional cgi?

625


Can we refresh servlet in client and server side automatically?

591


What is the requirement of servlet config and servlet context implemented and how are they implemented?

539


Define servlet mapping?

660






Explain the difference between get and post method in servlet?

602


Who is responsible for writing a constructor?

777


How do you find out what client machine is making a request to your servlet

529


What is called a session?

621


What are the steps that are required to handle the multi-threading?

593


What is the life cycle of a servlet?

785


What exactly are the functions of servlet?

597


How do you design microservices?

623


What are the jobs performed by servlets?

581


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2282