The given object has a null identifier解决之法

出现这个异常,一般来说主要修改时候主键没有传递或者name属性指定错误。
            解决方案:你要把你的更新的实例的主键传过去,可以以hidden的方式传。

<s:hidden name="action中实例对象名.id" id="id"></s:hidden> 
原文地址:https://www.cnblogs.com/h-g-f-s123/p/6532816.html