struts 2 三目运算
<s:set id="styleList" value="{'default','success','warning'}"/>
<s:iterator id="student" value="#request.studentList" status="st">
<tr class='<s:property value="#st.index%3==0?#styleList[0]:#st.index%3==1?#styleList[1]:#styleList[2]" />'>
</tr>
</s:iterator>