第一个jsp页面
<table>
<tr>
<td><a href="#">加载</a></td>
</tr>
<tr>
<td id="import"></td>
</tr>
</table>第二个页面
<table>
<tr>
<td>加载成功</td>
</tr>
</table>
怎样才能点第一个页面的“加载”链接会动态加载第二个页面到第一个页面的import这个单元格中去,请高手指点

解决方案 »

  1.   

    用嵌入式框架可以实现
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body>
    <table width="500" border="1">
      <tr>
        <td height="30"><div align="center"><a href="http://www.sina.com" target="main">新浪</a> <a href="http://www.sohu.com" target="main">搜狐</a> <a href="http://www.163.com" target="main">网易</a></div></td>
      </tr>
      <tr>
        <td height="200"><iframe width=500 height=200 name=main frameborder=0 src=http://www.cctv.com scrolling="auto"></iframe></td>
      </tr>
    </table>
    </body>
    </html>
      

  2.   

    第一个jsp页面
    <table>
    <tr>
    <td><a href="second.jsp(这里做一个action也行)" target="main">加载</a></td>
    </tr>
    <tr>
    <td height="200"><iframe width=500 height=200 name=second frameborder=0 src="second.jsp" scrolling="auto"></iframe></td></tr>
    </table>第二个页面second.jsp
    <table>
    <tr>
    <td>加载成功</td>
    </tr>
    </table>
      

  3.   

    搂上的提醒的对!应该是这样的:
    第一个jsp页面
    <table>
    <tr>
    <td><a href="second.jsp(这里做一个action也行)" target="second">加载</a></td>
    </tr>
    <tr>
    <td height="200"><iframe width=500 height=200 name=second frameborder=0 src="second.jsp" scrolling="auto"></iframe></td></tr>
    </table>第二个页面second.jsp
    <table>
    <tr>
    <td>加载成功</td>
    </tr>
    </table>