O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

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

Conclusions

One of the primary strengths of the MVC architecture is the flexibility surrounding model components. The architecture enables you to hide the implementation details of how the model class actually accesses its information.

The model is the piece of the MVC pattern that is least tightly controlled by Struts, specifically because it’s Struts’ job to shield the Web application from it.

You should follow through with this idea by keeping all your implementation-specific business logic out of the Struts components. For example, you should never be doing raw JDBC calls in an Action.

You can achieve even greater independence from the implementation by abstracting your business logic through some kind of object factory, which would enable ...

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