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