The ATG platform provides five targeting servlet beans. Four of them use a targeter to gather a set of items from a content repository, and render the items on the page. They differ only in how many items they actually display:
TargetingForEach displays all of the items returned by the targeter.
TargetingFirst displays the first n items, where n is a number you specify.
TargetingRange displays a range of items, such as the third through the seventh.
TargetingRandom displays n items chosen randomly.
TargetingArray differs from the others in that it does not format the output of the targeting operation. Instead, you must use another servlet bean to format the output.
The following sections describe how to control the output of these servlet beans, covering the following topics: