struts+hibernate 框架搭的项目,where is wrong?



java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity


对象为null?在哪个环节出了问题?




<form action="user_register" method="post">
    <input name="username" type="text">
    <input name="userpwd" type="password">
    <input name="note" type="text">
    <input type="submit" value="submit"> 
</form>


之前是这种写法 ,属性名字没有加上 对象.   修改如下之后 就ok。


<form action="user_register" method="post">
    <input name="user.username" type="text">
    <input name="user.userpwd" type="password">
    <input name="user.note" type="text">
    <input type="submit" value="submit"> 
</form>




java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity


对象为null?在哪个环节出了问题?


本文转载:CSDN博客