The Servlet Request parameter
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
- . . .