+ -
当前位置:首页 → 问答吧 → <s:if>小问题~~谢谢了

<s:if>小问题~~谢谢了

时间:2011-09-07

来源:互联网

action:

context.put("a",a);
------------------------------------------
jsp:

<tr>
  <th>类型</th>
  <s:property value="#hm[1]" /> 这样可以得到值0,1。(类型0单位,1个人)
</tr>

我现在就是想问,这样把下面的html用struts2标签修改。
 <input type="radio" id="fkfLx1" name="fkfLx" value="1" checked="checked"/> 个人
 <input type="radio" id="fkfLx2" name="fkfLx" value="0" /> 单位

作者: lianlinyu   发布时间: 2011-09-07

<s:property value="#hm[1]" /> 修改为<s:property value="#a[1]" />

作者: lianlinyu   发布时间: 2011-09-07

作者: shixitong   发布时间: 2011-09-07