We have made many introductions to the Java EE Framework. This article will give a systematic summary of the four frameworks commonly used in Java EE.
Struts
Struts is an MVC framework based on the Sun Java EE platform, mainly implemented using Servlet and JSP technologies.
The Struts framework can be divided into the following four main parts, three of which are closely related to the MVC mode:
1. Model is essentially an Action class in Struts (This will be discussed in detail later). developers can implement business logic through it, at the same time, the user request to the Action through the Controller forwarding process is based on the configuration information described by the struts-config.xml file.
2. View is a complete set of JSP custom tag libraries that work with the Controller Servlet. using them, we can quickly create an application system interface.
3. The Controller is essentially a Servlet that forwards client requests to the corresponding Action class.
4. A bunch of sdks used for parsing XML files. Struts uses XML to describe how to automatically generate some JavaBean attributes, in addition, Struts also uses XML to describe the user prompt information in international applications (This achieves the multi-language support of the application system ).