I've one delete routine in
Java file...calling that routine when delete button is pressed but it is getting executed(the scriptlet part in java script method) everytime I submit the form.
How to execute that only at the time of clicking delete button?
function deleteValue(){
if(!confirm("Do you want to delete"))
{
return;
}
else
{
alert("confirmed");
%
if(request.getParameter("rateCode")!=null)
invData.delRateCode(request.getParameter("inventoryID"),request.getParameter("rateCode"));
%
}
}
Regards,