What is ServletContext() and what is its use?
Answer Posted / ranjit
as soon as the java web application is
deployed into web container ,the first
object that container create is
servletcontext
This object is only one per web application
Every web component of web application
share this unique object
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
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()?
Explain the lifecycle of a servlet?
how many jsp scripting elements are there and what are those?
How will two or three servlets interact or communicate with each other?
What is url encoding and url decoding
The code in a finally clause will never fail to execute, right?
What is the difference in between the httpservlet and generic servlet?
Can you refresh servlet in client and server-side automatically?
How the JSP file will be executed on the Server side?
Why are servlets used?
What is servlet mapping?
What's the servlet interface?
What is servlet attributes and their scope?
What is the use of java servlet api?
What do you mean by scope object and what are its types?