Servlets that Receive Form Data
- A Servlet Processing
User Input.
- Line 11: Using the HttpServletRequest object to access a
client parameter (discussed below).
- Line 20: Echoing the parameter in the message back to the client.
- A Web Page Accepting User Input
(use your browser's View option to view the page source).
- The form tag names the Servlet that is to process the
parameter.
- Two input tags allow the user to enter text and submit it
via a button.
- The entered text is sent in a parameter called username.