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