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?

WCM
  • 595
  • 3
  • 11
  • 27
  • 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. – Jozef Chocholacek Apr 26 '17 at 08:45
  • you should check http://stackoverflow.com/questions/30498646/how-to-send-json-and-parse-it-on-next-html-page-through-url-in-jquery?noredirect=1&lq=1 – parlad Apr 28 '17 at 11:04

0 Answers0