我有一个jsp页面A.jsp 他里面有一个值为a=0;我想将这个值传到B.jsp中,怎么操作
jQuery语句怎么写
$.ajax({url:'b.jsp',data:{a:0},cache:false,complete:function(xhr){
alert('服务器返回:'+xhr.responseText);
}});
b.jpg
String a=request.getParameter("a");
href=“B.jsp?a="+a;
B.jsp
${param.a}
就这样传到了啊,你试试