Table of Contents

Introduction

Most of your program's activity is a reaction to messages the application sends out during cycles of the request-response loop. These messages travel through the objects of an application: from application to session object, from session to component object, and from a component to its static and dynamic HTML elements. They enable the application to store user input, trigger action methods, and generate a response, usually in the form of an HTML page.

For background on the request-response loop, and on the roles the various WebObjects classes play in request handling, see "How WebObjects Works".

For WebObjects developers, the emitted messages are hooks into the request-response loop allowing them to invoke custom application behavior. You can influence what happens during request handling by taking advantage of these hooks. For example, you can determine what page to return based on user input, modify the header lines of a generated HTTP response, initialize variables from database records, or substitute a page for the requested page.

There are three types of hooks that can be implemented in either scripts or compiled classes:

Table of Contents Next Section