当前位置: 代码迷 >> Java Web开发 >> 二级联动实现不了,请高手指教,该怎么解决
  详细解决方案

二级联动实现不了,请高手指教,该怎么解决

热度:34   发布时间:2016-04-17 15:07:35.0
二级联动实现不了,请高手指教
我的用的二级联动与数据库相连,第一级 "授权批准人员 "可以从数据库中调出,但第二级 "授权人员类别 "只是空的下拉菜单,请问高手这是怎么回事?我的代码如下,请高手指教
<%@   page   language= "java "     import= "java.util.* "   pageEncoding= "GBK "%>
<%@   page   import= "java.sql.* "   %>
<script   src= "AjaxClient.js "> </script>
  <script>      
       
    function   bbbbb(){      

                initXmlHttp();
var   idValue   =   form1.se1.text;
var   url   =   "ajaxServlet?id= "   +   idValue;
send(url,form1);

    }    
  </script>  
<form   align= "center "   method= "post "   name= "FrmAddLink "   LANGUAGE= "javascript "
        onsubmit= "return   FrmAddLink_onsubmit() "   action= "saveadduser.jsp ">
<%
    ResultSet   rs1=stmt.executeQuery( "select     distinct   TYPE   from   MTYPE_TAB ");
%>
  <table   border= "1 "   cellspacing= "0 "   width= "700 "   >
  <tr>  
<td   width= "20% "   align= "right "   height= "2 "   valign= "middle "> <font   color=red> * </font> <b> <font   color= "#0080C0 "> 授权批准人员: </font> </b> </td>
                                <td   height= "2 "   colspan= "3 "   width= "85% ">  
                                    <select   name= "se1 "   onChange= "bbbbb() "     >
<option   selected> 请选择 </option>
   
        <%   while(rs1.next())      
    {%>
        <option     value= " <%=rs1.getString( "TYPE ")%> "> <%=rs1.getString( "TYPE ")%> </option>    
        <%   }      
    %>      
   
</select>
   
                                </td>
                            </tr>
<tr>  
  <td   width= "20% "   align= "right "   height= "2 "   valign= "middle ">   <font   color=red> * </font> <b> <font   color= "#0080C0 "> 授权人员类别: </font> </b> </td>
                                <td   height= "2 "   colspan= "3 "   width= "85% ">  
                                  <select   name= "se2 "   >
  相关解决方案