What is a servlet context?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is a servlet context?
Rating:
A servlet context defines a set of methods that a servlet uses to communicate with its servlet container. Using a servlet context, a user can obtain the MIME type of a file, dispatch requests, and write to a log file. The ServletContext object is contained within the ServletConfig object, which the Web server provides to the servlet when it is initialized. Each Web application in a container can have a single servlet container associated with it.
Rating:
Was this information helpful?
Other articles
- What is the <jsp:forward> standard action?
- What are the relational and logical operators available in the expression language?
- What is the getRemoteAddr() method?
- What is the getSession() method?
- What is the HttpSessionAttributeListener interface?