can we create more than ServletContext and ServletConfig in
your application
Answer Posted / naresh
We can not have more than one servletContext in a web
application, but we can have more than one servletConfig
provided there is more than one servlet in the web
application...
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Is dispatcher servlet a singleton?
How forward () method is different from send redirect () method?
What is the process for chaining servlet?
What are the uses of servlet and what is servlet chaining?
What is difference between PrintWriter and ServletOutputStream?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What are the different session tracking techniques?
How to handle exceptions thrown by application with another servlet?
What are the annotations used in servlet 3?
What are different ways for authentication of servlet?
What is servlet container?
How does tomcat servlet container work?
What is servlet attributes and their scope?
Explain the lifecycle of a servlet?
Explain url encoding in servlet?