Struts provided and form-related labels

xiaoxiao2021-03-06  48

Tags related to the Form include the

tag itself, and all the labels that must be included there. For example, the and tags are related to Form, because if they don't put them in a form, they don't make sense.

Tags tag is used to generate an HTML Form. Many rules must be followed when using this tag.

First, an action property must be included in the tag, 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 element in the element in the application's Struts configuration file. Moreover, there must be a Name property in the corresponding element, which is the name of the Form Bean.

For example, if you have such a tag:

Then you must have a element displayed as a bold element: .... . > That is to say that an FORM tag is associated with form bean.

Another rule to follow is: any label (, , ,