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