The HTML to Invoke a Servlet
This section describes the HTML that will be displayed on the client and cause a servlet to run on the server. The most common way for a browser to invoke a servlet is via an HTML button that causes the entire form, with all the data the user typed in, to be sent over to the server.
There are about ten different GUI input types, but the most often used are text, radio, checkbox, and submit. For a complete list of all the input types and other attributes, do a web search on “HTML, form, guide.” To make it all line up nicely on the screen, everything inside a form is often put in an HTML table.
Figure 26-2 shows an example of an HTML form, some INPUT tags, and the web page they generate. You should create a web ...
Get Just Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.