<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
    
  <title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">   

  </head>
    
  <body>
  <table>
  <tr>
  <td><a href="#" onclick="go('a.jsp')">首页</a></td>
  <td><a href="#" onclick="go('b.jsp')">数据</a></td>
  </tr>
  <tr>
  <td id="content" >
    
  </td>
  </tr>
  </table>
   
  </body>
</html>

我想在点首页的时候能把a.jsp页包含到td id为content标签里,效果如下
<td id="content" >
  <jsp:include page="a.jsp"></jsp:include>   
</td>
在点数据时候,能把b.jsp页包含到td id为content标签里,效果如下
<td id="content" >
  <jsp:include pageb.jsp"></jsp:include>   
</td>
怎么能实现这种类似于iframe的动态加载而不用iframe吗?

注:这个a.jsp/b.jsp是通过js传参过去的。

--
※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 222.36.230.160]