HTML form classes
The IBM Toolbox for Java™ HTMLForm class represents an HTML form. Use these classes to make forms more easily than you could with CGI scripting.
This class allows you to:
- Add an element, like a button, hyperlink or HTML table to a form
- Remove an element from a form
- Set other form attributes, such as which method to use to send form contents to the server, the hidden parameter list, or the action URL address
The constructor for the HTMLForm object takes a URL address. This address is referred to as an action URL. It is the location of the application on the server that will process the form input. The action URL can be specified on the constructor or by setting the address using the setURL() method. Form attributes are set using various set methods and retrieved using various get methods.
Any HTML tag element may be added to an HTMLForm object using addElement() and removed using removeElement().
Of course, you can add other tag elements to a form, including HTMLText, HTMLHyperlink, and HTMLTable.