Struts implements the MVC pattern through the use of ActionForwards and ActionMappings to keep control-flow
decisions out of presentation layer.
When you deploy your struts application:
Having received the request the ActionServlet locates the correct Form Bean from the struts-config.xml. The ActionServlet invokes
the FormBean Validator logic. If the Form Bean finds any error, it populates the ActionError Object
Using the Struts-Config.xml the ActionServlet locates and invokes the Action Class which invokes the model and returns an
ActionForward object to the ActionServlet.
The ActionServlet uses the ActionForward Object to dispatch to the correct view component.
|