Jsp的button按钮

跳转到jsp(不要在后面带参数,传递无效)

<input type="button" onclick="window.location.href='product_add.jsp?type=<%=type %>>'" value="添加">

跳转到servlet

 <input type="button" onclick="window.location.href='<%=path%>/servlet/ProductAdd?type=<%=type %>>'" value="添加">

posted @ 2013-12-22 10:41  行云有影  阅读(3009)  评论(0编辑  收藏  举报