HTML Tags
The HTML tag library for Struts contains labels for generating a user interface of Struts, which is similar to the FORM in HTML, and different is that the tag enters the user input parameter into the set Actionform Bean.
Base
The Base tag is used to generate an HTML
This tag cannot contain label content.
This tag has two properties.
Attributes
description
Server
Set the name of the server to replace the request.getServerName () method.
(Optional)
Target
The Target window property of this tag is referred to the corresponding HTML document.
(Optional)
Button
The role of the Button tag is to generate an HTML input form tag. This tag must be embedded in the Form tab.
This tag can have label content.
This label has twenty six properties.
Attributes
Description
AccessKey
Set the shortcuts of this element
(Optional)
Alt
Set this element prompt
(Optional)
AltKey
Set keywords used to get this element prompt from message resources
(Optional)
Disabled
When set to TRUE, the element is not available.
The default value is false
(Optional)
Indexed
This attribute is only valid when this tag is embedded in the
The default is False.
(Optional)
Onblur
Set the JavaScript script that is performed when this element is lost when the element is lost
(Optional)
ONCHANGE
Set the JavaScript script that is executed when the element is lost and the value is changed.
(Optional)
Onclick
Set the JavaScript script that is executed when the element is accepted by the mouse click event
(Optional)
Ondblclick
Set the JavaScript script that is executed when the element is executed when the element doubles the event
(Optional)
ONFOCUS
Set the JavaScript script that is performed when the element gets the input focus
(Optional)
OnkeyDown
Set the JavaScript script that the user performs when the user presses the keyboard when the element gets the input focus.
(Optional)
OnkeyPress
Set the JavaScript script when the element gets the input focus and the user presses and releases the keyboard
(Optional)
ONKEYUP
Set the JavaScript script that is performed when the element gets the input focus and the user releases the keyboard
(Optional)
OnMouseDown
Set the position of the JavaScript executed when the position of the mouse pointer is on this element and click the mouse button.
(Optional)
OnMousemove
Set the script of JavaScript executed when the position of the mouse pointer is on this element and the mouse moves.
(Optional)
OnMouseout
Set the script of JavaScript executed when the mouse pointer is removed from the element.
(Optional)
OnMouseover
Set the script of JavaScript executed when the mouse pointer is moved from the element in the region.
(Optional)
OnMouseup
Set the position of JavaScript executed when the mouse button is located on this element and release the mouse button.
(Optional)
Property
Set the name of the attribute of processing the value of the input element.
(have to)
Style
Set the CSS style of the HTML element.
(Optional)
STYLECLASS
Set the CSS style class attribute (corresponding to the style attribute in HTML)
(Optional)
StyleID
Set the ID attribute of this element (corresponding to the corresponding ID attribute in HTML)
(Optional)
TabINDEX
Set the order in which the focus of the Tab key is pressed in the expression.
(Optional)
Title
Set the reference title of this element.
(Optional) TitleKey
Set keywords for getting this element reference title from message resources
(Optional)
Value
Set the flag attribute of this button, the tab of the tag can also be used to set the flag attribute, and when both are not set or not exist, the default value will be "click", which will end up The attribute value of the ActionForm processes the ActionForm processes the element.
(Optional)
Cancel
The role of the CANCEL tag is to generate an HTML input form tag. This tag must be embedded in the Form tab.
This tag can have label content.
Attributes
Description
AccessKey
Set the shortcuts of this element
(Optional)
Alt
Set this element prompt
(Optional)
AltKey
Set keywords used to get this element prompt from message resources
(Optional)
Disabled
When set to TRUE, the element is not available.
The default value is false
(Optional)
Onblur
Set the JavaScript script that is performed when this element is lost when the element is lost
(Optional)
ONCHANGE
Set the JavaScript script that is executed when the element is lost and the value is changed.
(Optional)
Onclick
Set the JavaScript script that is executed when the element is accepted by the mouse click event
(Optional)
Ondblclick
Set the JavaScript script that is executed when the element is executed when the element doubles the event
(Optional)
ONFOCUS
Set the JavaScript script that is performed when the element gets the input focus
(Optional)
OnkeyDown
Set the JavaScript script that the user performs when the user presses the keyboard when the element gets the input focus.
(Optional)
OnkeyPress
Set the JavaScript script when the element gets the input focus and the user presses and releases the keyboard
(Optional)
ONKEYUP
Set the JavaScript script that is performed when the element gets the input focus and the user releases the keyboard
(Optional)
OnMouseDown
Set the position of the JavaScript executed when the position of the mouse pointer is on this element and click the mouse button.
(Optional)
OnMousemove
Set the script of JavaScript executed when the position of the mouse pointer is on this element and the mouse moves.
(Optional)
OnMouseout
Set the script of JavaScript executed when the mouse pointer is removed from the element.
(Optional)
OnMouseover
Set the script of JavaScript executed when the mouse pointer is moved from the element in the region.
(Optional)
OnMouseup
Set the position of JavaScript executed when the mouse button is located on this element and release the mouse button.
(Optional)
Property
Set the name of the attribute of processing the value of the input element.
The settings for this attribute need to be aware that if you change the default setting of this property, the Struts framework will not be able to automatically identify whether the element is excited. So you need yourself.
The default value of this property is org.apache.struts.taglib.html.cancle.
(have to)
Style
Set the CSS style of the HTML element.
(Optional)
STYLECLASS
Set the CSS style class attribute (corresponding to the style attribute in HTML)
(Optional)
StyleID
Set the ID attribute of this element (corresponding to the corresponding ID attribute in HTML)
(Optional)
TabINDEX
Set the order in which the focus of the Tab key is pressed in the expression.
(Optional)
Title
Set the reference title of this element.
(Optional)
TitleKey
Set keywords for getting this element reference title from message resources
(Optional)
Value
Set the flag attribute of this button, the label content can also be used to set the flag attribute, and when both are not set or not exist, the default value will be "cancel", which will eventually The attribute value of the ActionForm processes the ActionForm processes the element.
(Optional)