Typically, a catalog home page displays a list of root categories. Unlike other categories, root categories cannot be found through the childCategories property of other categories. Root categories are those that appear in the allRootCategories property of the user’s catalog.

The following example uses a ForEach servlet bean with the allRootCategories property to find the root categories.

<HTML> <HEAD>
<TITLE>Home Page</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">
<H1>Home Page</H1>
 <dsp:droplet name="/atg/dynamo/droplet/ForEach">
   <dsp:param bean="/atg/userprofiling/Profile.catalog.allRootCategories"
        name="array"/>
  <dsp:oparam name="output">
    <tr>
      <td>
      <dsp:getvalueof id="a26" param="element.template.url"
           idtype="java.lang.String">
<dsp:a href="<%=a26%>"/>
</dsp:getvalueof>
      <dsp:param param="element.repositoryId" name="id"/>
      <dsp:param value="pop" name="navAction"/>
      <dsp:param param="element" name="Item"/>
      <dsp:valueof param="element.displayName"/></td>
    </tr>
  </dsp:oparam>

  <dsp:oparam name="empty">
    <p>No root categories found.
   </dsp:oparam>
 </dsp:droplet>

</BODY> </HTML>
 
loading table of contents...