posts - 84,  comments - 54,  trackbacks - 0

      <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 阅读(1230) 评论(2)  编辑  收藏 所属分类: Struts&&WebWorkAjax


FeedBack:
# re: Logic:equal实现select二级下拉框联动定位[未登录]
2008-08-22 21:53 | water
你好,很高兴看到你这篇文章呀,能不能发一份源码给我呀?急需呀!我的Q:249595625,不胜感激!  回复  更多评论
  
# re: Logic:equal实现select二级下拉框联动定位

只有注册用户登录后才能发表评论。


网站导航:
 
<2024年12月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(5)

随笔分类(80)

收藏夹(1)

最新随笔

积分与排名

  • 积分 - 57559
  • 排名 - 898

最新评论

阅读排行榜