Basic HTML version of Foils prepared May 19 99

Foil 7 The init method

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


public void init (ServletConfig config)
The init method is invoked when the servlet is first started. For permanent servlets, this is when the server is started.
The init method is called only once and is guaranteed to finish before any calls to the service method.
The ServletConfig object passed as the parameter has a method getServletContext ( ) that returns a ServletContext with information about the servlet environment.



© 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