Table of Contents
Previous Section
In the second phase the request-response loop, the request component receives an invokeActionForRequest: inContext: message. invokeActionForRequest: inContext: determines whether or not the user has triggered an action. If an action has been triggered---for example, if the user clicked a button or a hyperlink---the application invokes the action method that corresponds to what the user did. An action method returns the response component---the component responsible for generating an HTTP response. If the user has not triggered an action, the request component is used as the response component.