Prashant Saraf ha scritto:
When i try to delete a record my tomcat gives following error error: java.lang.IllegalStateExceptionmy 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"); %>
How about the stack trace? Did you try to debug? Please be less dumb ;-) Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
