跳转到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="添加">

相关文章: