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