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 you to refactor your application to another data source or remote application server with minimal code rewrite in the view and controller.



Struts Kick Start
Struts Kick Start
ISBN: 0672324725
EAN: 2147483647
Year: 2002
Pages: 177

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net