日期:2014-05-17  浏览次数:20799 次

JSP页面下一部分未显示?各位指点一下,谢谢!
HTML code
<table cellpadding=0 cellspacing=0 width=157 align=center>
  <tr>
    <td height=25 class=menu_title onmouseover="this.className='menu_title2'"; onmouseout="this.className='menu_title'"; background="images/admin_left_1.gif" id=menuTitle1 onclick="showsubmenu(0)">
      <span>终端监控</span>
    </td>
  </tr>
  <tr>
    <td style="display:none" id='submenu0'>
        <div class=sec_menu style="width:157">
        <table cellpadding=0 cellspacing=0 align=center width=135>
            
        <tr><td height=20><a href=AllTermStat.jsp?Func=-1 target=main >状态监控</a></td></tr>
        </table>
          </div>
     
    <div style="width:157">
    <table cellpadding=0 cellspacing=0 align=center width=135>
    <tr><td height=20></td></tr>
    </table>
      </div>
    </td>
  </tr>
</table>
 
页面下右建查看源代码显示如下:
<table cellpadding=0 cellspacing=0 width=157 align=center>
  <tr>
    <td height=25 class=menu_title onmouseover="this.className='menu_title2'"; onmouseout="this.className='menu_title'"; background="images/admin_left_2.gif" id=menuTitle1 onclick="showsubmenu(1)">
      <span>终端管理</span>
    </td>
  </tr>
  <tr>
    <td style="display:none" id='submenu1'>
        <div class=sec_menu style="width:157">
        <table cellpadding=0 cellspacing=0 align=center width=135>
            
        <tr><td height=20><a href=UpdateSelectTerm.jsp target=main >版本发布</a></td></tr>
        </table>
          </div>
     
        [color=#FF0000]<tr><td height=20><a href=TermControl.jsp target=ma[/color]


JSP页面下:
String[][]menu=new String[8][14];
menu[0][0]="终端监控";
menu[1][0]="终端管理";

menu[0][1]="<a href=AllTermStat.jsp?Func=-1 target=main >状态监控</a>";
menu[1][1]="<a href=UpdateSelectTerm.jsp target=main >版本发布</a>";
menu[1][2]="<a href=TermControl.jsp target=main >远程控制</a>";

显示部分代码:
Java code
<%
    int i,j;
    for(i=0;i<7;i++){
%>
<table cellpadding=0 cellspacing=0 width=157 align=center>
  <tr>
    <td height=25 class=menu_title onmouseover="this.className='menu_title2'"; onmouseout="this.className='menu_title'"; background="images/admin_left_<%=i+1%>.gif" id=menuTitle1 onclick="showsubmenu(<%=i%>)">
      <span><%=menu[i][0]%></span>
    </td>
  </tr>
  <tr>
    <td style="display:none" id='submenu<%=i%>'>
        <div class=sec_menu style="width:157">
        <table cellpadding=0 cellspacing=0 align=center width=135>
            <%
            for(j=1;j<14;j++)
            {
            if(menu[i][j]==null||menu[i][j].trim().equals(""))
              break;
            %>
        <tr><td height=20><%=menu[i][j]%></td></tr>
        </table>
          </div>
     <%} %>
    <div style="width:157">
    <table cellpadding=0 cellspacing=0 align=center width=135>
    <tr><td height=20></td></tr>
    </table>
      </div>
    </td>
  </tr>
</table>
<%} %>