function to_page(page) {
alert(page);
$("#customerForm").attr("action", "${pageContext.request.contextPath }/customer_findAll.action?currPage="+page);
$("#customerForm").submit();
}
page的值是2
触发这个方法页面上是有alert弹出来的(弹出2)
但是!地址栏上是这样的:
http://localhost:8080/ssh2/customer_findAll.action?currPage=
没有page的值
看不出哪里错了
form标签我是是这样写的
<form id="customerForm" name="customerForm"
action="${pageContext.request.contextPath }/customer_findAll.action" method="get">