0

This is my code in 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");
	    	}
	});

It gives below alert

enter image description here

The fact I want want to know is How can I retrieve this JSON array in B.jsp?

2
  • Eh, what about request.getParameter("jsonArry");? Anyway, this is a very unfortunate way to pass such complex parameters between JSP pages. You should (re)consider your architecture. Commented Apr 26, 2017 at 8:45
  • you should check stackoverflow.com/questions/30498646/… Commented Apr 28, 2017 at 11:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.