3. Introduction
• Apache Struts is an open source framework
for web development used by the J2EE
developers for developing web applications.
• It was originally created by Craig McClanahan
and donated to the Apache Foundation in
May, 2000.
• The latest version of struts is 2.3.16.1
• Struts uses the MVC model.
4. What is MVC ?
• Model–view–controller (MVC) is a software
architectural pattern for implementing user
interfaces.
• It divides a given software application into
three interconnected parts.
• M – Model
• V – View
• C – Controller
6. Cont’d
• Model – It contains the codes of application
logic and the codes for connecting to the
database.
• View – The view is used to as a user interface.
It is either a HTML or JSP page.
• Controller – The controller acts as the
interface between the user and the model.
7. Why Struts ?
• Struts uses the MVC model.
• The goal of Struts is to separate the model
from the view and the controller.
• i.e., struts avoids mixing up of the business
logic or application logic and presentation.
• Thus struts are easy to maintain.