|
| |
Struts Model
A
model represents an application’s data and contains
the logic for accessing and manipulating that
data. Any data that is part of the persistent
state of the application should reside in the
model objects. The business objects update the
application state. ActionForm bean represents
the Model state at a session or request level,
and not at a persistent level. Model services
are accessed by the controller for either querying
or effecting a change in the model state. The
model notifies the view when a state change
occurs in the model.The JSP file reads information
from the ActionForm bean using JSP tags.
The Struts frame work doen't offer much in the
way pf building model components. The Enterprise
JavaBeans (EJB), Java Data Objects(JDO) and
JavaBeans can be use as a model. Struts frame
work doesn't limit you to one particular model
implementation. |
|