Detailed explanation and use of HTML tags in Struts1

Source: Internet
Author: User

 

The following properties are commonly used:

Action: Specifies that a user-submitted component is handled by that component method

Method: Specifies whether the form is submitted as a post or get

Style: Specifying CSS Styles

StyleClass: Specifies the name of the CSS style sheet attached to the label

Target: Specifies the frame or window to which the form is submitted





Common properties include the following:

Property: Specifies the name of the text box to match one of the attributes in the Actionform bean

Disabled: Sets or gets the state of the control, and True indicates that it is forbidden.
Maxlength Set or get the maximum number of characters a user can enter in a text box

Readonly Sets or gets whether the contents of the text box are read-only

Size to set or get the sizes of the text boxes

style Specifies styles for CSS
StyleClass Specifies the CSS style sheet name attached to the label

Title Tool Tip Information text
Titlekey The contents of the specified message key as a ToolTip message text from the message resource

Value sets or gets the display value of the text box, which is returned to the server when the text box is submitted


Common methods:

Onblur Specifies the JavaScript method that fires when an object loses input focus onchange specifies that the contents of the object or selection are triggered when the content of the selected area changes
OnClick Specifies the JavaScript method that fires when the user clicks the object with the left mouse button Ondbclick Specifies the JavaScript method that fires when the user double-clicks the object with the left mouse button onfocus Specifies the JavaScript method to start when the object gets focus OnKeyDown The JavaScript method that is triggered when the user presses the keyboard
onkeypress Specifies the JavaScript method that is triggered when the user presses a non-function key onkeyup Specifies the JavaScript method that is triggered when the user releases the keyboard
OnMouseDown Specifies the JavaScript method that fires when a user clicks an object on any mouse button onmousemove Specifies the JavaScript method that is triggered when the user hovers the mouse over the object onmouseout Specifies the JavaScript method that fires when the user moves the mouse pointer out of an object
ONMOUSEOVER Specifies the JavaScript method that fires when the user moves the mouse pointer inside the object onmouseup specifies the JavaScript method that fires when the mouse button is released when the mouse is over the object

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Detailed explanation and use of HTML tags in Struts1

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.