Struts 2 form tag

Source: Internet
Author: User

Form tags-webwork2 document cultural program

Struts2.0 tag Library (3) form tag

And struts 2 in-depth explanation by. Sun Xin

Description

Form tags are divided into two types: Form tags themselves, and all other tags that wrap a single form element. the behavior of the form tag itself is different from its internal elements, which is very important. before providing a reference manual for all form tags, including form tags, We must describe some common attributes.

Common attributes

Attribute Theme Data Type Description
Cssclass Simple String Define HTML class attributes
Cssstyle Simple String Define HTML style attributes
Title Simple String Define HTML title attributes
Disabled Simple String Define the HTML disabled attribute
Label XHTML String Define the label of the form Element
Labelposition XHTML String Defines the label position (top/left) of the form element. The default value is left.
Requiredposition XHTML String Defines the position (left/right) of the required icon relative to the label element. The default value is right.
Name Simple String Name ing of form elements
Required XHTML Boolean Add * to the label (true or not)
Tabindex Simple String Define HTML tabindex attributes
Value Simple Object Define the value of a form Element
Javascript-related attributes

Attribute Theme Data Type Description
Onclick Simple String HTML JavaScript onclick attribute
Ondbclick Simple String HTML JavaScript ondbclick attribute
Onmousedown Simple String HTML JavaScript onmousedown attributes
Onmouseup Simple String HTML JavaScript onmouseup attributes
Onmouseover Simple String HTML JavaScript onmouseover attributes
Onmouseout Simple String HTML JavaScript onmouseout attributes
Onfocus Simple String HTML JavaScript onfocus attribute
Onblur Simple String HTML JavaScript onblur attributes
Onkeypress Simple String HTML JavaScript onkeypress attributes
Onkeyup Simple String HTML JavaScript onkeyup attributes
Onkeydown Simple String HTML JavaScript onkeydown attribute
Onselect Simple String HTML JavaScript onselect attributes
Onchange Simple String HTML JavaScript onchange attributes

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.