2
xmlHttp.open( "GET", "/mcd/demo.jssp?array="+arr, false ).

And how to fetch it in jssp? My arr lookes like arr= [3214,2345,84834,4847,83474,3244,234834,........ 30k+ values]

3
  • send it as post request Commented Feb 26, 2016 at 5:58
  • If you are sending 30k+ values then you are doing something wrong... Commented Feb 26, 2016 at 6:07
  • I can't find any other way to pass data from one page to another. Can you suggest some better ways? Commented Feb 26, 2016 at 6:39

1 Answer 1

1

max-length of a URL is 2000 characters, so you can't send 30 thousand array items as a GET request

Send the request as of type post

xhttp.open("POST", "/mcd/demo.jssp", true);
xhttp.send("array="+arr);
Sign up to request clarification or add additional context in comments.

Comments

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.