When i try to delete a record my tomcat gives following error
error:
java.lang.IllegalStateException
my code fo delete is
<%
if(del!=null) {
System.out.println("in delete");
if(Item_con == null ) {
throw new Exception() ;
}
Item_stmt=Item_con.createStatement();
str = "Delete FROM items where ItemName='" + Name +"'";
System.out.println("this is "+Item_stmt.executeUpdate(str));
System.out.println("record deleted");
Item_con.close();
System.out.println("con closed");
%>
--
Cup of Java + Suger of XML = Secure WebApp