这个哪里不对了??/急!!!!
sql= "delete from message where id= "+msg_id;
rs=smt.executeUpdate(sql);
response.sendRedirect( "manage_index.jsp ");
错误提示:
An error occurred at line: 13 in the jsp file: /manageBack/delete.jsp
Generated servlet error:
D:\Program Files\Tomcat 5.0\work\Catalina\localhost\ROOTs\org\apache\jsp\manageBack\delete_jsp.java:151: 不兼容的类型
找到: int
需要: java.sql.ResultSet
rs=smt.executeUpdate(sql);
^
------解决方案--------------------rs=smt.executeUpdate(sql);返回int 类型,不能返回ResultSet