错误Batch update returned unexpected row count from update [0]; actual row count: 0;

时间:2022-10-18 14:58:09

参考:http://blog.****.net/ssyan/article/details/7471343

也是出现类似问题,在前台页面的隐藏域中判断id是否为null,而没有去判断是否为空字符串.

<s:if test='id!=null&&id!=""'>
<input type="hidden" name="id" value='<s:property value="id"/>'>
</s:if>