I am very new to this and trying to call a method which will update the record depending on the check box user clicks.
now my jsp looks like this
<input TYPE="checkbox" name="<%=as.getAppId()%>" id="<%=as.getAppId()%>"
<%=((as.isStatus()==true)?"CHECKED":"")%> onClick="update('<%=as.getAppId()%>')" />
and the scripts
function update(appId)
{
var stat = eval("document.getElementById(appId)");
var i;
if (stat.checked == false){
i =GtwySysMgmtDao .updateAppStatus(appId,"N");
}else{
i = GtwySysMgmtDao .updateAppStatus(appId,"Y");
}
form.submit();
}
Now i used firebug to debug and saw that its getting to the right place but it never calls the method.
I used imports to get the class
<%@ page import="org.nipr.gateway_mgmt.GtwySysMgmtDao"%>
and method in GtwySysMgmtDao class is a static method.
In internet explorer i get an error when i click on the check box.
it says
GtwySysMgmtDao is undefined.
Please help. what am I doing wrong here?