Structs, structs2

Source: Internet
Author: User

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.

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.