Struts2 s tag

Source: Internet
Author: User

A:
<S: a xhref = ""> </s: a> ----- hyperlink, similar to <a> </a> in html
<S: action name = ""> </s: action> ----- execute an action in a view.
<S: actionerror/> ----- if the errors of an action has a value, it is displayed.
<S: actionmessage/> ----- if the message of an action has a value, it is displayed.
<S: append> </s: append> ----- add a value to the list, similar to list. add ();
<S: autocompleter> </s: autocompleter> ----- automatically complete the content of the <s: combobox> tag. This Is ajax.

B:
<S: bean name = ""> </s: bean> ----- similar to the value of JavaBean in struts1.x

C:
<S: checkbox> </s: checkbox> ----- check box
<S: checkboxlist list = ""> </s: checkboxlist> ----- multiple selection boxes
<S: combobox list = ""> </s: combobox> ----- drop-down list
<S: component> </s: component> ----- image symbol

D:
<S: date/> ----- obtain the date Format
<S: datetimepicker> </s: datetimepicker> ----- Date input box
<S: debug> </s: debug> ----- displays the error message.
<S: div> </s: div> ----- represents a block, which is similar to <div> </div>
<S: doubleselect list = "" doubleName = "" doubleList = ""> </s: doubleselect> ----- double drop-down box

E:
<S: if test = ""> </s: if>
<S: elseif test = ""> </s: elseif>
<S: else> </s: else> ----- these three tags are used together to indicate condition determination.

F:
<S: fielderror> </s: fielderror> ----- displays the file error message.
<S: file> </s: file> ----- file Upload
<S: form action = ""> </s: form> ----- obtain the value of the corresponding form.

G:
<S: generator separator = "" val = ""> </s: generator> ---- used with the <s: iterator> label

H:
<S: head/> ----- used in <S: hidden> </s: hidden> ----- hide Value

I:
<S: i18n name = ""> </s: i18n> ----- load the resource package to the value stack.
<S: include value = ""> </s: include> ----- contains an output, servlet, or jsp page.
<S: inputtransferselect list = ""> </s: inputtransferselect> ----- obtain an input of form.
<S: iterator> </s: iterator> ----- used to traverse a set

L:
<S: label> </s: label> ----- read-only label

M:
<S: merge> </s: merge> ----- merge and traverse the values of the set.

O:
<S: optgroup> </s: optgroup> ----- obtain a tag group
<S: optiontransferselect doubleList = "" list = "" doubleName = ""> </s: optiontransferselect> ----- left and right selection boxes

P:
<S: param> </s: param> ----- provide parameters for other labels
<S: password> </s: password> ----- password input box
<S: property/> ----- get the attribute of 'value'
<S: push value = ""> </s: push> ----- the value of value is pushed to the stack, so that the property tag can obtain the attribute of value.

R:
<S: radio list = ""> </s: radio> ----- single-choice button
<S: reset> </s: reset> ----- reset button

S:
<S: select list = ""> </s: select> ----- single vertex
<S: set name = ""> </s: set> ----- assign the variable a value within a specific range.
<S: sort comparator = ""> </s: sort> ----- classify a list by attributes.
<S: submit> </s: submit> ----- submit button
<S: subset> </s: subset> ----- indicates the output subset of the traversal set.

T:
<S: tabbedPanel id = ""> </s: tabbedPanel> ----- table box
<S: table> </s: table> ----- table
<S: text name = ""> </s: text> ----- I18n text information
<S: textarea> </s: textarea> ----- text field input box
<S: textfield> </s: textfield> ----- text input box
<S: token> </s: token> ----- interceptor
<S: tree> </s: tree> ----- tree
<S: treenode label = ""> </s: treenode> ----- Tree Structure

U:
<S: updownselect list = ""> </s: updownselect> ----- multi-choice box
<S: url> </s: url> ----- create a url

 

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.