一般使用spring用来管理事务, webwork用于展示层的MVC, hibernate用于数据持久化.
它们各干各的, 一般是互不干涉.
Spring确实对hibernate提供了一些封装, 但是这只是附加的东西.
我就不喜欢用, 直接用hibernate的session也没复杂多少.

解决方案 »

  1.   

    直接用Spring的MVC吧
    Spring + Hibernate就行了
      

  2.   

    spring为webwork提供的便利需要扩展的包来定制.
    Rod Johnson首先考虑的应该是springMVC的结合.webwork得靠边站站
      

  3.   

    spring跟webwork 结合也很方便spring可以管理action和为action注入 等
      

  4.   

    谢谢 aChinese(一个中国人) 我认为spring为hibernate提供的便利很不错啊!!谢谢 YuLimin(阿敏总司令:简单就是美):我只是一个兵  决定不了  哈哈谢谢 nighthawk(我们孤单,我们并肩):确实这样,当项目要求我们用webwork,没办法。谢谢 jfy3d(剑事 www.migti.com):能不能具体点?谢谢!!
      

  5.   

    这个问题至于搞这么复杂么?看看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大展身手的地方。