Developing Web applications based on Struts 2

Source: Internet
Author: User
Tags java web websphere application server

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.