[转载]struts+hibernate遇到的错误总结
 
单个框架训练,没有结合2个框架做,所以今天就找了个网上发布租房信息的小项目结合
struts+hibernate做了下,当中遇到的问题还真多,其中有很多经典的问题,所以在这里记
录下来,免得以后再犯。
 
,必须得直接使用拼接型做法,这样也容易引起乱码(已解决)。要是用预处理做法将会报
错,来看下代码,再分析下为什么出错。如图:
![[转载]struts+hibernate遇到的错误总结 [转载]struts+hibernate遇到的错误总结](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
 
![[转载]struts+hibernate遇到的错误总结 [转载]struts+hibernate遇到的错误总结](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif) 
 
 
config.xml通过controller配置,就可以搞定。。。。。。。。。
 
 
单个框架训练,没有结合2个框架做,所以今天就找了个网上发布租房信息的小项目结合
struts+hibernate做了下,当中遇到的问题还真多,其中有很多经典的问题,所以在这里记
录下来,免得以后再犯。
 
,必须得直接使用拼接型做法,这样也容易引起乱码(已解决)。要是用预处理做法将会报
错,来看下代码,再分析下为什么出错。如图:
![[转载]struts+hibernate遇到的错误总结 [转载]struts+hibernate遇到的错误总结](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
 
![[转载]struts+hibernate遇到的错误总结 [转载]struts+hibernate遇到的错误总结](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif) 
 
 
config.xml通过controller配置,就可以搞定。。。。。。。。。
 
