The MVC contrast between NET and Java

Source: Internet
Author: User

Recently learned struts, Han Master's video is very exciting, but also very detailed, let me aftertaste, after watching the basic usage of struts, suddenly want to and net MVC architecture to make a contrast, perhaps this will understand more profound.

Of course, the finishing is only my humble summary, there will be some places need everyone to correct, hope Master generous enlighten.

Let's start with a comparison of the overall process:

1. NET MVC main process sequence diagram:

2. Java's MVC main process sequence diagram:

From the sequence diagram comparison of one of the above operations, it can be seen that the Java struts has a actionservlet (total controller, which is provided by struts) to do the global leveling, and then according to the action of the page form to find the corresponding action, This net is based on the action of the page form to find the corresponding controller and action corresponding to the RouteConfig.cs Maproute.

NET MVC, the Controller and Action and HTTP requests correspond to the class file RouteConfig.cs to complete, struts MVC is through the configuration file Struts-config.xml to complete.

The following are the corresponding graphs of the main parts:

These are learned from the simple struts after a little experience, and so slowly infiltrated the essence of the struts and then back to tidy up.

The MVC contrast between NET and Java

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.