Research on Struts architecture (<struts in action> Reading Notes)

Source: Internet
Author: User

Javaben is a Java class that meets the design pattern requirements. Define two methods to access bean data, accessors (getter) read and mutator (setter) Write. Actionserverlet automatically calls the setter method.
JSP is used to display pages, JSP tag is used to format data, and action is used to collect and forward data.
Development framework: a reusable and roughly completed application Program . You can customize it to generate a real application that the customer needs. It is provided to the programmer's backbone module and can be reused.
In general, the main purpose of the Web application architecture is to help you obtain data from the browser and pass it to your own application for processing. In short, data is transmitted between browser applications.
Generally, program development follows the MVC Architecture. jsp processes the presentation layer, JDBC processes the model layer, and Struts processes the control layer.
Struts adopts the model2 architecture. It mainly consists of actionforward/hyperlink (to where? Destination), actionforms/htmlforms (what data is there), actionclass/customactions (what has it done? Where did you go ?). Actionserverlet is responsible for controlling the process, JSP processing performance layer, and action is responsible for the business logic. When actionserverlet retrieves a request from the container, it uses the requested URI (PATH) to determine which action to process the request. An action can check the validity of the input and read the information in the database or other data services through the business logic layer. Actionform is an input Bean used to contain input data. Actionserverlet determines which actionform contains the input data by checking the path.

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.