Introduction
As a typical framework for Java WEB applications, struts has always been favored by Java developers, and Struts 2 is another milestone in the development of struts, based on webwork, providing a more easy-to-use, more powerful MVC framework. It also helps developers to implement a Java Web application system faster, more efficiently, and easily.
For developers, different projects may require different platforms for developing and running Struts 2, and Struts 2 requires the following environments: Servlet API 2.4, JSP API 2.0, Java 5. IBM WebSphere Application Server 6.1 (was 6.1) complies with all requirements of Sturts 2 for the running environment. In addition, IBM Rational Software Architect 7 (RSA) provides tools for designing and developing applications, including creating and developing WEB applications. The combination will be the ideal platform for developing Struts 2.
Build Struts 2 development platform based on RSA and was
First we use RSA to create a dynamic Web project, and we assume that RSA has created a server that was 6.1:
Figure 1. Create the was 6.1 run environment in RSA
In the process of creating the project, you need to be aware that the target runtime server and the dynamic Web module version are correctly set, as shown in the following figure:
Figure 2. Setting up a dynamic Web project
Other by default configuration, click "Finish". After the project is created, the basic package structure of the project is generated automatically, so that the WEB project uses the Struts 2 framework, we need to do the configuration: