<s:if test="%{false}">
<div>Will Not Be Executed</div>
</s:if>
<s:elseif test="%{true}">
<div>Will Be Executed</div>
</s:elseif>
<s:else>
<div>Will Not Be Executed</div>
</s:else>

Name

Required

Default

Evaluated

Type

Description

test true   false Boolean Expression to determine if body of tag is to be displayed

 

<s:iterator value="days">
<p>day is: <s:property/></p>
</s:iterator>

<s:iterator>标签,值是valuestack里面当前对象的getDays()得到的返回值。(day的集合)
使用<s:property>输出每一项。

 

struts2学习 - action - 6 - 标签

相关文章:

  • 2021-06-07
  • 2022-01-06
  • 2021-08-30
  • 2021-10-01
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-01
  • 2021-12-29
  • 2021-11-12
  • 2022-02-09
  • 2021-12-24
  • 2021-07-10
  • 2021-05-14
相关资源
相似解决方案