Chapter 9. Integrating with Spring and Hibernate/JPA

This chapter covers

  • Managing objects with Spring
  • Knowing when to use dependency injection
  • Adding Spring to Struts 2
  • Integrating Struts 2 and the Java Persistence API

Now that we’ve finished the core chapters, we know how to build a basic Struts 2 application. We’ve even done so with our Struts 2 Portfolio. This chapter starts the part of the book dealing with how to finish the application with a variety of refinements that many developers consider best practices. The refinements that we introduce in this chapter are specifically related to integrating a Struts 2 application with a pair of popular third-party technologies, Spring and the Java Persistence API (JPA).

First, we learn how to ...

Get Struts 2 in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.