aspose file tools*
The moose likes Struts and the fly likes Struts 2 and Other Framworks. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 and Other Framworks." Watch "Struts 2 and Other Framworks." New topic
Author

Struts 2 and Other Framworks.

DJ Corpuz
Greenhorn

Joined: Dec 05, 2006
Posts: 2
I'm currently using spring in one of my projects that I'm doing. Now Struts 2 has come into the picture as our Software architect said that its one of things that we could use in our project. I was hoping if someone could help me better understand how to tie up Spring and Struts 2 together. BTW were also using Hibernate that's tied up with Spring. So any help would really be appreciated

Thanks!
john fuhr
Greenhorn

Joined: Feb 27, 2001
Posts: 16
Originally posted by DJ Corpuz:
I'm currently using spring in one of my projects that I'm doing. Now Struts 2 has come into the picture as our Software architect said that its one of things that we could use in our project. I was hoping if someone could help me better understand how to tie up Spring and Struts 2 together. BTW were also using Hibernate that's tied up with Spring. So any help would really be appreciated

Thanks!



i've used spring for service-layer, hibernate for the data-layer and struts 2 for handling the front end. there should be some example of spring with struts 2 in the examples. keep your hibernate configuration working with spring and you're on your way. struts 2 does use injection like spring

have a look here as a guide: http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html

john fuhr
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Spring is the default DI container for WebWork2 (which is the biological father of Struts2), so your investment in Spring & Hibernate is safe.
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 and Other Framworks.
 
Similar Threads
Struts 2 + EJB3 + Spring
Struts2 with Spring MVC?
Creating Custom plugin Class in Struts 2
struts2 Vs spring mvc
about struts,hibernate,spring