Struts is a set of technologies for developing M - V- C user interfaces for Web-based applications, especiially those supported by Servlet engines.
The basic approach is to use Java Server Pages (JSPs) as the view component; individual servlets function asd the controller component and handle the actions associated with each view/JSP element; and a set of Form Beans that carry the data from the view to the action elements. The model component is outside of the basic framework, but is generally represented as a Bean, and its methods are called by the controller elements to accomplish the business function of the system.
One critical element of the architecture that is not visible to the developer is a controller servlet that receives input from the various forms generated by the JSPs and passes control and relevant data to the appropriate action element.
One of the most attractive aspects of the Struts approach is that virtually all of the infrastructure and much of the code are generated automatically by WebSphere Studio. Thus, developing a conceptual understanding of what the tools are doing is critical. A checklist is provided, below, that lists the major steps in developing a basic Struts user interface.
A checklist is provided for creating a Struts M-V-C user interface.
- Apache Jakarta Struts Project.
- WebSphere Studio Help: Application developer information > Struts application development.
- Kyle Brown, Apache Struts and VisualAge for Java, Part 1: Building Web-based Applications using Apache Struts.
- Christina Lau, Creating a Web Application using the Data Access Beans in WebSphere Studio V5.
- Jane Fung & Colin Yu, Writing a Simple Application using WebSphere Studio V5.
- IBM Redbook, Legacy Modernization with WebSphere Studio Enterprise Developer, see Part 2.