问题:
The given object has a null identifier:cn.pethome.category.domain.Category
今天遇到关于请求过程中出现的空值问题Exception occurred during processing request: The given object has a null identifier
最后发现是我设置隐藏字段的时候忘了设置name属性,name属性是提交过程中中必须要设置的字段:
<form
action="${pageContext.request.contextPath }/adminCategory_updateCategory.action"
method="post">
<input type="hidden" name="cid"
value="<s:property value="model.cid"/>" />
//后面的代码省略