The given object has a null identifier问题解决

    xiaoxiao2021-08-19  108

    今天做项目过程中遇到了一下小BUG:

    The given object has a null identifier :................

    一般来说主要修改时候主键没有传递或者name属性指定错误.我的错误是因为属参数值没有传递过来造成的,忽略了隐藏域。

    解决方案:

    <FORM id=form1 name=form1         action="${pageContext.request.contextPath }/customer_update.action"         method="post" enctype="multipart/form-data">         <s:hidden name="cust_id"/>         <s:hidden name="cust_image"/>              添加隐藏域

    转载请注明原文地址: https://ju.6miu.com/read-676657.html

    最新回复(0)