I need to use CreateCriteria feature in Struts2 with Spring. I have setted up an enviroment with this three frameworks, but I only can use NamedQueries, I want to use CreateCriteria. However, to use CreateCriteria, I need Hibernate's object session.
I guess I still don't see how this is related to Struts 2.
Are you asking how to integrate Struts 2 with Spring? Just use "spring" as the object factory--this is done automatically by the Struts 2 Spring plugin. You can then inject any Spring objects you want into your actions.