0312-Compounding Calculator 02

Source: Internet
Author: User

First, Introduction:

Version type: Web version;

Using the tool: Myeclipse,tomcat.

Frame used: Struts2,spring,bootstrap

Main functions: Calculate maturity amount, calculate principal, calculate investment length

Second, the operation effect such as:

1) Calculate maturity Amount:

2) Calculate the principal:

3) Calculate the length of investment:

Third, technical analysis:

Struts2: Here with STRUTS2 is mainly the use of its request and view separation characteristics, by configuring the corresponding action in the Sruts.xml, the separation of HTML and Java code, thus reducing the coupling of the program, improve its maintainability, extensibility.

Spring: This program mainly uses the characteristics of sping control inversion, the object that the program needs to use in the form of bean configuration to the Applicationcontext.xml file, so do not need to use the object's class to the new corresponding object, also greatly reduced the process The coupling of the sequence.

Bootsrap: This is nothing to say, is to use its corresponding components to beautify the program interface, simple and convenient.

Iv. Structural Analysis:

As shown, the program's SRC directory is divided into three layers, action layer, service layer, and Service.impl layer, understand javaweb students should understand the corresponding role of these several layers, the author does not elaborate.

Five: summary and experience:

As we have only begun to learn the knowledge of the Web this semester, the framework used in this program is only extracurricular self-study, using only the tip of the iceberg. Knowing that there are many deficiencies in the procedures, but in the process of writing a lot of income.

A simple program, originally can be a few code to fix, why do I have to use a few large frameworks, from layering to naming all pay attention to normalization? I just think that since do, it is best to practice what they want to practice things, a method does not work, think of what is easier and easier to implement the method can be replaced. The small program as a project to do, simple program can also be not simple.

0312-Compounding Calculator 02

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.