Servlet Context Information
This information is available at any time through the ServerConfig object. (This is why you should save the ServerConfig parameter from the init method.): Servlet Context c = config.getServletContext ( )
The ServletContext object has methods:
- getAttribute
- getMimeType
- getRealPath
- getServerInfo
- getServlet (String name )
- getServletNames
- log (String message )