As Java technology has matured over the last few years so have we. We've
learned that building complex enterprise applications that respond to change
requires more than standardized APIs and virtual machines. Fortunately, we're
now starting to see the widespread adoption of best practices, patterns, and
even frameworks with templates and prebuilt components. This article looks at
the MVC design pattern and reviews its implementation in Struts, a
presentation-tier application framework, as well as recognizing analogies of
MVC to a well-formed, EJB-tier framework that Struts can be integrated with.
MVC for J2EE
Struts is an implementation of the presentation tier using MVC. The Struts
controller encapsulates the presentation logic, handling the interaction of
the JSP pages view with the JavaBeans model, which might access a database
through JDBC.
When we integrate wit... (more)