Table of Contents
Previous Section
In the final phase of requst-response loop, the response page generates an HTTP response. Generally, the response contains a dynamically generated HTML page.
This is the basic sequence of events in generating a response:
- The WOWebScriptApplication object stores the values of all session and persistent variables. Subsequent changes to session and persistent variables will not be preserved in the next cycle of the request-response loop. For more information on how a WebObjects application manages state, see the chapter "Managing State."
- The WOWebScriptApplication object receives a willGenerateResponse:inContext: message.
- The response component receives a generateResponse:inContext: message. generateResponse:inContext: invokes the request component's willGenerateResponse:inContext: method, generates an HTTP response using the response component's HTML template, and then invokes the response component's didGenerateResponse:inContext: method.
- The WOWebScriptApplication object receives a didGenerateResponse:inContext: message.
Table of Contents
Next Section