如何发送&使用Java Script中的URL将JSON Array检索到不同的JSP页面

时间:2017-04-26 06:18:07

标签: javascript json ajax jsp

这是我在 A.jsp

中的代码

$.ajax({ 
	    method: "GET",
	    url: "getMilestone",
	    data: {"projectId" : projectId},
	    traditional: true, 
	    success:
	    	function(jsonArry){
	    		alert(jsonArry);
	    		window.location.href = "<%=request.getContextPath()%>/B.jsp?jsonArry="+jsonArry;   
	    },
	    error: 
		    function(){
	    		alert("fail");
	    	}
	});

它提供以下警告

enter image description here

我想知道的事实是如何在 B.jsp 中检索此 JSON数组

0 个答案:

没有答案