O'Reilly logo

Struts 2 in Action by Scott Stanlick, Chad Michael Davis, Don Brown

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required