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


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

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