Conclusion

The new declarative exception handling is a great addition to the Struts framework and one that should certainly save developers time, during both initial development and maintenance. Whenever possible, you should make a serious effort to take advantage of the declarative exception-handling features rather than attempting to write your own. The good news remains, however, that if you do need to create your own customized exception handling, the freedom and flexibility for you to do so exists in the framework.

Get Programming Jakarta Struts 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.