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
Can a jsp be called using a servlet?
What do you mean by interservlet communication?
Is it possible to have a constructor inside the servlet?
How to upload a file to the server using servlet?
How can you push data from an Applet to a Servlet?
What do you mean by default initialization in java servlet?
What is a servlet context object?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are the various ways of session supervision in servlets?
How many objects of a servlet is created?
How can I send user authentication information while making URL Connection?
What are the disadvantages of storing session state in cookies?
How can we perform any action at the time of deploying the project?
What do you mean by url pattern in servlet?
How do you get the ip address of the client in servlet?