xmlHttpRequest.send(Params) not working in tomcat 7
<p>I am trying to send some parameters through xmlHttpRequest.send(params) written in a JS file to my servlet where I try to get the parameters by req.getParameter("some_Parameter"); it returns null on the servlet. though if i send the parameters by appending them in url it works fine. but when the url will be large it will break the code. so please someone help me out.</p>

<p>Thanks in advance. </p>

<pre><code>function doHttpPost(theFormName, completeActivity) 
{ 
    var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); 
    var xmlMessage = buildPOST(theFormName, completeActivity); 
    var responseTxt; 
    try { 
        xmlhttp.Open(document.forms[theFormName].method, document.forms[theFormName].action+'?'+xmlMessage, false); 
        xmlhttp.onreadystatechange=function() { 
            if (xmlhttp.readyState==4) { 
                responseTxt = xmlhttp.responseText; 
            } 
        } 
        xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        enableDisableLinks(true);
        setPointer();  
        xmlhttp.Send(); 
        if(xmlhttp.Status != 200) { 
            alert("Post to server failed"); 
        } 
    } catch (e) { 
        responseTxt = "Exception while posting form data: Error No: " + e.number + ", Message: " + e.description; 
    } 

    resetPointer();  
    enableDisableLinks(false);
    var expectedTxt = "Form Data had been successfully posted to the database." 
    if(responseTxt.toString() == expectedTxt.toString()) { 
        // MNP: New requirement from Jeanne, should not refresh CM page, commenting it off for now
        //if(completeActivity) {
        //  if (typeof (ViewCaseDetailBtn) != 'undefined') {
        //      ViewCaseDetailBtn.click();
        //  }
        //}
        return true; 
    } else {
        alert (responseTxt); 
    }
    return false; 
}
</code></pre>
