File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Answer" Watch "Answer" New topic
Author

Answer

Juan Porras Antonio
Greenhorn

Joined: Feb 16, 2010
Posts: 11
Ok, I'm sorry. I'll be more specific.

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 hope this explanation was better.

Regards.
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 787

Use A Meaningful Subject Line
Think if several threads come up with Answer as subject line then how can a person know by looking at subject line what query asked inside the thread


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60792
    
  65

Also please learn the difference between replying to a topic and creating a new one. Was this meant to be a reply?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

This seems to be a reply to this...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Answer
 
Similar Threads
Hibernate doing a JOIN and a SELECT though only a JOIN is specified as FetchType and on the hbm
org.hibernate.exception.SQLGrammarException: could not execute query
Getting mulltiple parent records while eager fetching child
Setting up Struts2, Spring, Hibernate3
Hibernate 3 SQL Injection Attack possible on this kind of code ?