Chapter 19. Creating and Processing HTML Forms

Topics in This Chapter

  • Data submission from forms

  • Text controls

  • Push buttons

  • Check boxes and radio buttons

  • Combo boxes and list boxes

  • File upload controls

  • Server-side image maps

  • Hidden fields

  • Groups of controls

  • Tab ordering

  • A Web server for debugging forms

HTML forms provide a simple and reliable user interface to collect data from the user and transmit the data to a servlet or other server-side program for processing. In this chapter we present the standard form controls defined by the HTML 4.0 specification. However, before covering each control, we first explain how the form data is transmitted to the server when a GET or POST request is made.

We also present a mini Web server that is useful for understanding ...

Get Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition 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.