How to get jSon object in servlet from jsp?

Posted by divi on Stack Overflow See other posts from Stack Overflow or by divi
Published on 2010-05-04T08:25:06Z Indexed on 2010/05/04 8:28 UTC
Read the original article Hit count: 210

Filed under:

In jsp page i have written:

var sel = document.getElementById("Wimax"); var ip = sel.options[sel.selectedIndex].value; var param; var url = 'ConfigurationServlet?ActionID=Configuration_Physical_Get'; httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); httpRequest.open("POST", url, true); httpRequest.onreadystatechange = handler(){ if (httpRequest.readyState == 4) { if (httpRequest.status == 200) { param = 'ip='+ip; param += 'mmv='+mmv; param += "tab="+tab; }}; httpRequest.send(param);

i want this param variable in my configurationServlet. Can any one tel me how to get this json object in servlet???

© Stack Overflow or respective owner

Related posts about JSON