Jsp页面中ajax提交数据:及hbm.xml文件中出现的错误
2010-11-27 21:46
537 查看
从jqgrid获得数据dele(”+rowObject.uid+”)
Function dele(id)中传入的数据要用data包裹,另外action里的数据id要和
Data里面传入的一样。此外,action里 的方法中不要写参数
一般通过get set得到ajax提交的data数据。
当 名称不一样时会报如下错误
另外,Hbm.xml文件映射中 不能出现空格,否则出现如下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from file D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/erp/WEB-INF/classes/hibernate/
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from file D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/erp/WEB-INF/classes/hibernate
Caused by: org.hibernate.PropertyNotFoundException: field [taskassigdate ] not found on
Hbm.xml文件映射中 不能处理集合类型 当entity类中有集合类型的的属性时,汇报如下错误:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table:
如果坚持要放集合,则需将集合独立成一张表,在hbm.xml文件中建立对映关系(多对一,多对多等)。
Function dele(id)中传入的数据要用data包裹,另外action里的数据id要和
Data里面传入的一样。此外,action里 的方法中不要写参数
一般通过get set得到ajax提交的data数据。
当 名称不一样时会报如下错误
另外,Hbm.xml文件映射中 不能出现空格,否则出现如下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from file D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/erp/WEB-INF/classes/hibernate/
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from file D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/erp/WEB-INF/classes/hibernate
Caused by: org.hibernate.PropertyNotFoundException: field [taskassigdate ] not found on
Hbm.xml文件映射中 不能处理集合类型 当entity类中有集合类型的的属性时,汇报如下错误:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table:
如果坚持要放集合,则需将集合独立成一张表,在hbm.xml文件中建立对映关系(多对一,多对多等)。
相关文章推荐
- SSH框架问题——hbm.xml配置出现的org.hibernate.MappingException: Could not determine type for:(貌似叫数据类型转换错误)问题
- ajax 提交数据到后台jsp页面及页面跳转问题
- 设置文件下载页面的代码时下载后的数据出现数据错误的错误原因和解决办法
- SpringMVC+Ajax页面无刷新提交多个文件和数据
- 用jsp将xml文件解析到网页显示,并把数据提交保存到数据库
- jsp页面的ajax和form表单提交后接收数据的区别(SpringMVC控制器返回Map对象)
- Java 简单解决springmvc获取properties文件里面中文内容出现论码问题(我遇到的问题是数据提交检验时返回的错误提示出现乱码)
- 【Jsp】Ajax提交数据不刷新页面
- 把HTML表单提交的数据转化成XML文件-XML+Ajax教程
- PHP Ajax,FormData收集表单数据(包括文件) 页面无刷新上传文件(提交表单)
- Ajax实现xml文件数据插入数据库(二)--- ajax实现与jsp的数据交互
- Ajax实现xml文件数据插入数据库(二)--- ajax实现与jsp的数据交互。
- Ajax 提交 数据含特殊字符 出现500错误
- jsp之同一个页面提交和接收数据
- jsp页面引入ocx控件出现错误
- python Python 解析xml文件出现错误xml.parsers.expat.ExpatError: unknown encoding 的解决
- hbm.xml文件不能被找到的错误
- Ajax利用FormData提交文件和数据
- JSON数据在JSP页面上出现中文乱码
- 0.jquery 验证,以及显示出现错误的地方 1.当用jquery.validate与ajax时候特别小心在每句后面的逗号问题,如果不需要的地方加上逗号会造成页面无法进入js验证