This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 802

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: 63202
    
  69

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: 9400
    
  20

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
 
It's not a secret anymore!