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
1
The servlet gets information from the ServletRequest parameter either by a Stream:
req.getInputStream (or req.getReader for ASCII chars )
2
or by getting individual parameter names:
req.getParameter ( "firstname" );
req.getParameter ( "secondname" );
3
There are additional methods for getting request information, such as:
getRemoteAddr
getProtocol
getServerName
. . .
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