The given object has a null identifier: com.crm.domain.Customer; nested exception is org.hibernate.TransientObjectException: The given object has a null identifier: com.crm.domain.Customer
主要原因是修改页面表单提交时缺少hidden字段来传递数据的id,解决方法是在表单页面加上下面的代码:
<s:hidden name="cust_id"/>
下面是错误的截图(今天遇到的错误,记录一下错误):