Struts is a framework that is built in the MVC design mode. You can comply with the standard development steps to develop your Struts web application, which can be described below: 1. Defining and generating all views of all user interfaces representing the application, Generate all ActionForms used by these Views and add them to the struts-config.xml file. 2. Add the necessary MessageResources item 3 to generate the application's controller in the ApplicationResource.properties file. 4. Define the relationship between Views and Controller in the struts-config.xml file. 5. Generate the Model component 6 you need to apply, compile, and run your application.
The Struts label library consists mainly of four sets of labels, which are:
1, bean tag, the role is to manipulate beans in JSP
2, Logic tag, the role is to perform process control in JSP
3, HTML label, role is to display components such as forms and other components
4, Template label, the role is to generate dynamic templates special instructions: the so-called tags are some classes, this is some similar to beans, they run, generate standard HTML tags to return to the browser.
However, here should pay attention to: Practice prove, to make the compilation process not wrong, you must put a struts.jar file into the / commit / lib directory, and set the classpath in the environment variable, which is / Common / Lib / struts.jar; You can compile the .java files under the Entity, Bussness, and Action directories, respectively.