I want to compare a javascript variable with a jsp variable. How can I do this?
function verify_details()
{
var resourceId=document.getElementById("res").value;'
<%! String rId;%>
<%
for(int i=0;i<l.size();i++)
{
rId=l.get(i).toString();
System.out.println("Elements Are:"+rid);
%>
if(resourceId==rId)
alert("Alloted");
else
alert("Not Alloted");
<%}%>
}