SSH 整合问题 新手求教

[quote]信息: ... initialized Struts-Spring integration successfully
Hibernate: insert into t_user (account, password, name, headpic, sex, birthday, bloodtype, constellation, hometown, introduction) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2011-3-21 17:10:25 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 515, SQLState: 23000
2011-3-21 17:10:25 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: 不能将值 NULL 插入列 'account',表 'MicroblogData.dbo.t_user';列不允许有 Null 值。INSERT 失败。[/quote]

我在做的是个注册模块 account, password, name都 不能为NULL 其它配置文件都应该不会出错
当我输入http://...../regist后 貌似Hibernate就发送了一条insert语句 就报错了 怎么不要让Hibernate发送insert语句的?

你在Action里看看Account,name,password都拿到值了吗

[quote]
严重: 不能将值 NULL 插入列 'account',表 'MicroblogData.dbo.t_user';列不允许有 Null 值。INSERT 失败。
[/quote]
这说的很清楚啊,你要把一个Null值插入到非空的字段

[quote]
[code="java"]
if(userService.registApplication(user))
[/code]
[/quote]
这不是在做插入吗

[quote]
哦哦 我不明白的就是我只是访问action 没有显示JSP页面 还没来得及输入
[/quote]

你直接访问Action和通过页面上的Submit来访问是一样的,但是你直接访问Action没有页面上的那些元素,所以Action里拿到的都是空.

[quote]insert into t_user (account, password, name, headpic, sex, birthday, bloodtype, constellation, hometown, introduction) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [/quote]

这个表里有这么多字段,而注册的时候只填了几个,其它没填的可以为空吗?比如像性别之类的....
[quote]

/s:textfield

/s:textfield

/s:textfield

/s:textfield

[/quote]

[quote]
我的*.hbm.xml中有not-null="true"的
[/quote]

数据库中设置可为空了吗?