Basic HTML version of Foils prepared May 19 99

Foil 13 Servlet Context Information

From Overview of JDBC: Java Database Connectivity Java Servlets -- Spring Semester 1999. by Nancy McCracken


1 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 ( )
2 The ServletContext object has methods:
  • getAttribute
  • getMimeType
  • getRealPath
  • getServerInfo
  • getServlet (String name )
  • getServletNames
  • log (String message )

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999