How to get return value from javascript through JSP?
<pre class="lang-js prettyprint-override"><code>function testing(){
    var e = document.getElementById("selectBranchId");
    var strUser = e.options[e.selectedIndex].value; 
    return strUser;
}

function test(){
    var resultValue = testing();
    alert(resultValue);
}
</code></pre>

<p>How can I get the value of <code>resultValue</code> in JSP? I tried using <code>request.setAttribute</code> but I am getting error variable <code>resultValue</code> can't be resolved. What can be the solution?</p>