• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 and Other Framworks.

 
DJ Corpuz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic