Basic HTML version of Foils prepared May 19 99

Foil 14 The Servlet Request parameter

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


The servlet gets information from the ServletRequest parameter either by a Stream:
  • req.getInputStream (or req.getReader for ASCII chars )
or by getting individual parameter names:
  • req.getParameter ( "firstname" );
  • req.getParameter ( "secondname" );
There are additional methods for getting request information, such as:
  • getRemoteAddr
  • getProtocol
  • getServerName
  • . . .



© 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