STRUTS2 Technical Insider-----Seventh Chapter

Source: Internet
Author: User

1) What are the three main elements of the request-response model based on human-computer interaction?

① Communication Protocol-----People and machines can understand the data communication format

② Request Content-----The data request that the person initiated through some mechanism to the machine

③ Response Content-----The data content that the machine responds to after it receives the data request and does the logical processing.

such as Web Development: Communication protocol----HTTP Protocol Request Content----HTTP request Response Content----HTTP response

2) In the Java language, what are the three main types of request-response implementation patterns? Where are their main differences?

① parameter-return value (Param-return) mode

Public Return SomeMethod (Param param1,param param2) {

}

② parameter-parameter (param-param) mode

public void Service (HttpServletRequest request, httpservletresponse response)

In the Servlet standard interface definition, we can see that the service method is the actual place for HTTP request processing

STRUTS2 Technical Insider-----Seventh Chapter

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.