Chapter 12. Extending Struts 2 with plug-ins

This chapter covers

  • Extending the functionality of Struts 2
  • Integrating with SiteMesh, Tiles, and JFreeChart
  • Injecting constants and beans
  • Writing a breadcrumb plug-in

At this point, you’ve looked at all the essential artifacts that make up Struts 2. You’ve seen how all the parts fit together and could go off and write some amazing code. However, you probably wouldn’t get the best return on your investment. This section begins our review of the advanced features that tie all the basics together in exciting and useful ways.

Like any well-designed software, you should be able to extend the functionality without modifying existing code. Struts 2 leverages the plug-in architecture for this very purpose. ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.