页面跳转方式1——herf
在一些html的文档中,用herf实现页面跳转的比较常见,也很好用。
页面跳转方式2——利用表单action
<td>
<form method="post" action="ChangrCount.jsp" id="form1">
<input type="hidden" name="albumId" value="${item.albumId}" />
<input style="width:50px;" type="text" name="count" value="${item.count}" id="namecount"/>
</form>
</td>
页面跳转方式3——response.sendRedirect("cart.jsp");
esponse.sendRedirect("cart.jsp");的功能是地址重定向(页面跳转);