|
| |
Struts View The
view is responsible for rendering the state
of the model. The presentation semantics are
encapsulated within the view, therefore model
data can be adapted for several different kinds
of clients.The view modifies itself when a change
in the model is communicated to the view. A
view forwards user input to the controller.The
view is simply a JSP or HTML file. There is
no flow logic, no business logic, and no model
information -- just tags. Tags are one of the
things that make Struts unique compared to other
frameworks like Velocity.
The view components typically employed in a
struts application are
HTML
Data Transfer Objects
Struts ActionForms
JavaServer pages
Custom tags
Java resource bundles
Struts ActionForm
Struts ActionForm objects are used
to pass client input data back and forth between
the user and the business layer. The framework
automatically collects the input from the request
and passes this data to an Action using a form
bean, which is then passed to the business layer.
|
|