Structs, structs2
1. programs running on the server
2. Servlet three methods
Init
Service: abstract Method
Destroy
3. Steps
(1). In web. xml
<Servlet>
<servlet-name></servlet-name>
<servlet-class></servlet-class>
</Servlet>
<Servlet-mapping>
<servlet-name></servlet-name>
<urp-pattern></url-pattern>
</Servlet-mapping>
(2) url access url-pattern to search for the corresponding class
What is structs?
Struts is a type of mvc. I borrowed a sentence from <spring Development Guide>; to give it to you. I hope you can understand mvc.
For the existing mature Model-View-Control (MVC) framework, the main problems it solves are nothing more
Area:
1. encapsulate the input elements on the Web page as a (request) data object.
2. Schedule the corresponding logical processing units based on different requests and pass in the (request) data object as a parameter.
3. After the logic Processing Unit completes the operation, a result data object is returned.
4. Combine and display the data in the result data object with the pre-designed presentation layer to the user.
Although there are differences between various MVC implementations, the key processes are roughly as above.
What is structs?
Struts is a type of mvc. I borrowed a sentence from <spring Development Guide>; to give it to you. I hope you can understand mvc.
For the existing mature Model-View-Control (MVC) framework, the main problems it solves are nothing more
Area:
1. encapsulate the input elements on the Web page as a (request) data object.
2. Schedule the corresponding logical processing units based on different requests and pass in the (request) data object as a parameter.
3. After the logic Processing Unit completes the operation, a result data object is returned.
4. Combine and display the data in the result data object with the pre-designed presentation layer to the user.
Although there are differences between various MVC implementations, the key processes are roughly as above.