1. s标签获取action中的值:
<s:property value="#parameters.mySessionPropKey"/> or <s:property value="#parameters['mySessionPropKey']"/> or <s:property value="#parameters['myRequestPropKey']"/> request.----> <s:property value="#request.mySessionPropKey"/> or <s:property value="#request['mySessionPropKey']"/> or <s:property value="#request['myRequestPropKey']"/> session----> <s:property value="#session.mySessionPropKey"/> or <s:property value="#request['mySessionPropKey']"/> or <s:property value="#request['myRequestPropKey']"/> application---> <s:property value="#application.mySessionPropKey"/> or <s:property value="#application['mySessionPropKey']"/> or <s:property value="#application['myRequestPropKey']"/>
2. s 标签循环 list (action中, list存储是的是对象)
<s:if test="#request.deviceStartus == null || #requesst.deviceStartus.size() == 0"> 没有任何结果信息 </s:if> <s:else> <tbody> <s:iterator value="#request.deviceStartus"> <tr class="odd gradeX"> <td>${deviceId }</td> <td>${times }</td> <td>${cpu }</td> <td>${ram }</td> <!-- <td class="center"> 4</td> --> </tr> </s:iterator> </tbody>