• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Struts 2 and Other Framworks.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic