can we create more than ServletContext and ServletConfig in
your application
Answer Posted / sunstar
Servlet Context is used per Web apllication so we can't use
more than one Context,Servlet Config is per servlet or per
Jsp so you can use the more than one Config.....:-)
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is SingleThreadModel interface?
Can we use the constructor, instead of init(), to initialize servlet?
What is context in servlet?
What do you mean by mime type?
How can you use a servlet to generate a plain text instead of html?
How do you deal property files in servlet?
What is a web application and what is it’s directory structure?
Can you use javascript in servlets?
Who is responsible to create the object of servlet?
What are some advantages of storing session state in cookies?
What is the difference between encodeRedirectUrl and encodeURL?
What do you mean by a filter and how does it work?
How do you communicate in between Applets and Servlets?
Explain load on start-up and its importance?
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()?