<select name="secOrganIdSel"
onchange="javascript:location='<%=request.getContextPath()%>/dreportAction.do?method=getLevel3Organ&level2OrganId='+
this.options[this.selectedIndex].value;">
<option value="0">请选择机构.....</option>
<logic:notEmpty name="level2List">
<logic:iterate id="secOranList" name="level2List" type="avlfee.common.persistence.hibernate.base.LuOrgan">
<!--level2OrganId为request.setAttribute当中放入的参数-->
<logic:equal value="${level2OrganId}" name="secOranList" property="organId" >
<option value="<bean:write name="secOranList" property="organId" />" selected="selected">
<bean:write name="secOranList" property="companyName" />
</option>
</logic:equal>
<logic:notEqual value="${level2OrganId}" name="secOranList" property="organId">
<option value="<bean:write name="secOranList" property="organId" />">
<bean:write name="secOranList" property="companyName" />
</option>
</logic:notEqual>
</logic:iterate>
</logic:notEmpty>
</select>
三级机构:
<select name="thdOrganIdSel"
>
<option value="0">请选择机构.....</option>
<logic:notEmpty name="level3List">
<logic:iterate id="thdOranList" name="level3List" type="avlfee.common.persistence.hibernate.base.LuOrgan">
<option value="<bean:write name="thdOranList" property="organId" />">
<bean:write name="thdOranList" property="companyName" /></option>
</logic:iterate>
<input type="hidden" name="level3"/>
</logic:notEmpty>
</select>
posted on 2008-03-30 22:37
JavaCoffe 阅读(1229)
评论(2) 编辑 收藏 所属分类:
Struts&&WebWork 、
Ajax