一般使用spring用来管理事务, webwork用于展示层的MVC, hibernate用于数据持久化.
它们各干各的, 一般是互不干涉.
Spring确实对hibernate提供了一些封装, 但是这只是附加的东西.
我就不喜欢用, 直接用hibernate的session也没复杂多少.
它们各干各的, 一般是互不干涉.
Spring确实对hibernate提供了一些封装, 但是这只是附加的东西.
我就不喜欢用, 直接用hibernate的session也没复杂多少.
解决方案 »
- java.lang.NoClassDefFoundError: org/slf4j/Logger
- 使用SVN后再打包程序更新至服务器报No action instance for path /playcjdlt could be created怎么回事?
- 请教关于中兴华为笔试的问题
- 现在到了一个困惑期!请高人指点一下方向!
- Tomcat配置数据源问题,请热心人帮忙,急~~~~~
- MyEclipse开发Struts+Hibernate 的菜鸟级问题
- 请帮帮我吧,在Eclipse下开发applet遇到的问题
- 通过microsoft jdbc drive 连接server2000同样的配置在2000系统中成功,在2003系统里怎么不成呢?
- 怎么在tomcat里面部署jsp?
- hibernate 关联查询 报not an association: Id
- <iframe>标签的使用,谢谢大家!
- 使用POI读取Excel文件,然后写入数据库,在Excel的中文写入会乱码!!求解决方法!
Spring + Hibernate就行了
Rod Johnson首先考虑的应该是springMVC的结合.webwork得靠边站站
As of WebWork 2.2, the WebWork/XWork IoC container has been deprecated (though not removed) and the WebWork team recommends you use Spring for all your IoC needsSpring is, among other things, an Inversion of Control framework. As of WebWork 2.2, it is the recommended IoC container. You can find out more about Spring at http://www.springframework.org. This section covers the only supported Spring integration technique. However, there are many other ways to tie in to Spring with WebWork. Please see Other Spring Integration for more info. Note that none of the other methods are currently supported and could change at any time!
~我随便粘贴上来一部分,你可以下在一个webwork看看里面的doc中的文档。
下面是我在一个文档中粘贴出来的片断,你看看~
对一个典型的Web 应用而言,MVC 贯穿了整个开发过程。选用Webwork 的同时,也
就确定了MVC框架的实现。
MVC 提供了纵向层面的操控。也就是说,Webwork 将纵向贯穿Web 应用的设计,它
担负了页面请求的接收、请求数据的规格统一、逻辑分发以及处理结果的返回这些纵向流
程。
Spring 则在其中提供横向的支持。Model 层的情况比较典型,Webwork 将请求分发到
Action之后,所能做的事情就是等待Action执行完毕然后返回最后的结果。至于Action内
部如何处理,Webwork并不关心。而这里,正是Spring大展身手的地方。