Professional Documents
Culture Documents
Version 1.0.
Introduction
•Apache Struts is a framework which helps
developing J2EE applications using Model 2
MVC architecture.
•In the normal model 2 MVC architecture,
servlets acts as controller, bean acts as
model and JSP pages acts as view.
•There is no link between all the three and
the programmer has to manually do the link
in his code.
•Using Struts, the link between model, view
and controller is automatically taken care.
TCS Internal September 3, 2009
Important Classes
•The central part of the framework is
ActionServlet.
•This class controls navigational flow.
•The class Action is used to access business
objects.
•The input from the user is handled by
ActionForm class.
•The class ActionMapping bundles the above
classes together.
Action
Initial Page Action Form
(HTML/JSP) Servlet
Action
STRUCTS-CONFIG.XML
the ActionServlet.
September 3, 2009
The Strut Config Elements
data-sources Contains a set of DataSource objects (JDBC 2.0 )