I want to send more than 255 byte string from one page to another page in JAVA, (ie var a="abcd......(8000 character)" now i want to pass this variable in to query string but it give error.
So how can i pass this data in to next page.
Please give some solution
I am Using json as follow:
xmlHTTP=new XMLHttpRequest();
var url="path of jsp page?data=xyz"
xmlHTTP.open("POST",url,true);
xmlHTTP.send(null);
Here data=xyz and i want to send more than 80000 data replace of xyz using query string?
Use a POST rather than a GET. The query string is limited in length, and you can't do anything about it. If you have a large amount of data to send, use a POST instead of a GET.
Change your HTML form type to "post"
If U'r using JSON, this may helpful for JSON POST request
在JSP中,可以使用request.setattribute()进行设置,并可以使用request.getattribute()在目标位置获取它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.