<s:radio name="%{columnZhName}_querymodel" list="%{#{'yes':'精确','no':'模糊'}}" value="%{columnConditions[objectId].radioValue}" theme="simple" />
struts2常用标签:
<!-- listVehicle是action里面的一个成员变量,它是一个Vehicle对象的一个集合,numberType是Vehicle对象的一个属性,有get方法,也是Value Stack Contents里面的内容可以直接访问
注意如果是文本框里面的值传到action里面去
<input name="people.idCard" type="text" class="input-ryyj" />
如果只需要将idcard传到action,那么people只需要set方法,如果action跳到界面时还要展示之前idcard的值,就还需要get方法。
action里面的people不能手动实例化,struts会自动帮你注入值,不然就会得不到值
-->
<s:if test="listVehicle !=null && listVehicle.size>0"> <s:iterator value="listVehicle" status="iteratorStauts" var="vehicle"> <tr> <input type="hidden" value="<s:property value="id"/>" id="cl_state_<s:property value='#iteratorStauts.index'/>_pk"/> <td align="center"><s:property value="#iteratorStauts.index+1" /></td> <s:property value="#vehicle.numberType"/> <td align="center"><s:property value="numberType"/></td> <td align="center"><s:property value="vehicleModels"/></td> <td align="center"> <select id="cl_state_<s:property value='#iteratorStauts.index'/>" name='status'> <option value ="0" <s:if test="%{state ==0 }"> selected="selected" </s:if> >未派发</option> <option value ="1" <s:if test="%{state ==1 }"> selected="selected" </s:if> >派发待收</option> <option value ="2" <s:if test="%{state ==2 }"> selected="selected" </s:if> >已接收</option> <option value ="3" <s:if test="%{state ==3 }"> selected="selected" </s:if> >已处理</option> <option value ="4" <s:if test="%{state ==4 }"> selected="selected" </s:if> >已抓获</option> </select> </td> <td align="center"> <s:if test="status == 0" > <select name="organization" id="cl_state_<s:property value='#iteratorStauts.index'/>_organization"> <option value=""></option>
<!-- 访问ConfigData的静态方法getInstance,再访问它的成员方法getOrganizationData--> <s:iterator value="@com.sungoal.warning.arithmetic.ConfigData@getInstance().organizationData" > <option value="<s:property value="key"/>"><s:property value="value"/></option> </s:iterator> </select> </s:if> </td> </tr> </s:iterator> </s:if>
<s:elseif test="%{true}"> <div>Will Be Executed</div> </s:elseif>
<s:else>
<div>Will Not Be Executed</div> </s:else>