Continue to learn the HTML tag library provided by Struts. BY BUDI Kurniawan I told how to use the HTML tag library provided by Struts to configure a Struts application. I also introduced a class of labels in the label library: a label that uses independently. In the second part I will continue to introduce the second type of label: Tags related to Form. Tags associated with the form include tag itself and all the labels that must be included there. For example, and the label is the Form-related label because if they don't put them in a form, they have no meaning. The tag tag is used to generate an HTML Form. Many rules must be followed when using this tag. First, the tag must contain an action attribute, which is the only necessary attribute in this tab. If this property does not have this attribute, the JSP page will throw an exception. You must give this Action property to a valid value. A valid value refers to the access path of any child elements in the element in the Struts configuration file of the application. Moreover, there must be a Name property in the corresponding element, and its value is the name of the Form Bean. For example, if you have such a tag:
For example, the following code is fixed on the second Text element: