Struts2 basic -- tag, struts2 tag

Source: Internet
Author: User

Struts2 basic -- tag, struts2 tag

I. general labels

1. s: property (read the property value of the object in the value stack)

Attribute: value: Specifies the OGNL expression; default: Specifies the default value when the OGNL expression is returned as null. escape: Specifies whether to escape special HTML characters.

E1: Read the attribute values of objects in the object stack.

<s:property value="[1].userName"/>

E2: access the Map stack and read the attribute values of objects in the Session domain.

<s:property value="#session.sessionKey"/>

E3: access the Map stack and read the attribute values in the domain object through attr

<s:property value="#attr.requestAttrKey"/>

2. s: url

 

 

3. s: set

 

 

 

4. s: push

 

 

5. s: if, s: elseif, s: else

 

 

6.7 s: iterator

 

7.8 s: sort

 

8.9 s: date

 

9.10 s:

 

10.11 s: action

 

 

11.12 s: bean

 

 

12.13 s: include

 

 

 

 

13.14 s: append

 

 

 

14.15 s: merge

 

 

15.16 s: generator

 

16.17 s: subset

 

 

 

 

 

 

 

 

Ii. Form tags

Related Article

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.