This document provides an overview of the Apache Struts 2 framework. It discusses that Struts 2 is an open-source MVC framework built on top of Servlets and JSP technologies. It takes complexity out of building web applications and encourages good design practices. The document then outlines the basic steps to create a simple Struts 2 application, including writing JSP pages and action classes, configuring the struts.xml file, building and deploying the application.
2. Apache Struts
Struts is an open source Web application framework
developed as Apache Jakarta project
http://jakarta.apache.org/struts/
Model-View-Controller (MVC) framework
Used for constructing web applications based Servlets
and JSP technologies
Strutsapplication is a genuine Web application that should
be able to run on any Servlet container including all Java
EE compliant App servers
2
3. Why Struts?
Takes much of the complexity out of building your
own MVC framework
Encourages good design practice and modeling
Easy to learn and use
Feature-rich and many supported 3rd-party tools
Flexible and extensible
Large user community
Stable and mature
Open source 3
6. Steps
1. Write JSP pages (View)
2. Write Action class (Model)
3. Forward at either success or error
through configuration set in struts.xml
4. Build, deploy, and test the application
6