严重: Servlet.service() for servlet default threw exception
严重:Servlet.service()forservletdefaultthrewexceptionorg.hibernate.PropertyValueExcepti...
严重: Servlet.service() for servlet default threw exception
org.hibernate.PropertyValueException: not-null property references a null or transient value: dao.Userinfo.userName
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<form action="user!delete.action?cardId" method="post">
<input name="userinfo.cardId"/>
<input type="submit" value="提交"/>
</form>
public String delete(){
iuinfo.delete(userinfo);
return query();
}
public void delete(Userinfo userinfo) {
udao.delete(userinfo);
}
public void delete(Userinfo userinfo); 展开
org.hibernate.PropertyValueException: not-null property references a null or transient value: dao.Userinfo.userName
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<form action="user!delete.action?cardId" method="post">
<input name="userinfo.cardId"/>
<input type="submit" value="提交"/>
</form>
public String delete(){
iuinfo.delete(userinfo);
return query();
}
public void delete(Userinfo userinfo) {
udao.delete(userinfo);
}
public void delete(Userinfo userinfo); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询