Many Web applications obtain information from users by having them fill out forms. A form might need to handle user input in a variety of formats, check input for validity, handle errors, and pass input to a servlet for processing, or to a database for storage.
Through the use of special attributes, JSPs can associate HTML form tags with Nucleus components properties:
A page can automatically display the value of a Nucleus component property as the default value of a form element.
When a form is submitted, its values can be written to component properties. A single form can set any number of properties in Nucleus components.
Forms can interact directly with a SQL database. Form input can be stored in a database, or used to query a database for information to display.
When a form is submitted, its input elements can trigger actions in the application.
This chapter shows how to use forms in JSPs. It covers the following topics: