java - Adventure of passing Javascript array[arrays[Strings]] -
i have javascript array[arrays[strings]], want pass jsp (cannot utilize java entire logic written in javascript , lead humongous amount of rework). challenge current functionality using struts (which have no experience in) , couldn't useful solution on net. links can suggested?
i have pass entire object array , not in other form.
json javascript object turned string (serialized) can turned object 1 time again in java. can post string java application.
in javascript can turn object json using:
var jsonstring=json.stringify(myobject);
you can turn json string object in javascript using:
myobject=json.parse(myjsonstring);
this won't work in older ie browsers (i think ie7 , below).
as parsing json strings in java , turning them objects; have no experience can find info on here:
http://json.org/java/
java javascript arrays
No comments:
Post a Comment