DEVFYI - Developer Resource - FYI

What is servlet context ?

Servlet Interview Questions and Answers


(Continued from previous question...)

19. What is servlet context ?

The servlet context is an object that contains a servlet's view of the Web application within which the servlet is running. Using the context, a servlet can log events, obtain URL references to resources, and set and store attributes that other servlets in the context can use. (answer supplied by Sun's tutorial).

(Continued on next question...)

Other Interview Questions