在总页中布置框架如下:
<frameset rows="23%,37%,40%" border="0">
<frame src="${path }/inc/head.jsp" scrolling="no">
<frameset cols="20%,80%">
<frame src="${path }/jsp/user/left.jsp" scrolling="no">
<frame src="${path }/task.do?method=getAll" scrolling="no" name="right">
</frameset>
<frame src="${path }/inc/footer.jsp">
</frameset>
left.jsp中对应的超链接设置:
<a href="${path }/task.do?method=addTask" target="right">制定任务
这样点左边链接,右边就会出现内容.
效果如下图