SSH开发中 使用超链接到action 其excute方法会被执行两次 actual row count: 0; expected: 1

来源:互联网 发布:乐语网络好不 编辑:程序博客网 时间:2024/06/06 23:17

由于执行两次excute,所以在做删除操作的时候会出现

Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
表示找不到要删除的


在控制台出现的语句是

Hibernate: delete from user where id=?
Hibernate: delete from user where id=?

两个一样的


在网上找了好久也没有发现是什么原因,有些道友说是将struts的form标签也当成action被拦截了一次,但是我的只是一个连接action的草连接,后来无意中看到一位道友说他遇到浏览器不兼容的问题,我就换了360(前面用的firefox),ko了。

0 0