The category_generic.jsp template page displays products of type Accessory. The following example is the code for this JSP fragment:

<% /*
This template displays all subcategories or products of any category
in a four column format.
*/ %>

<DECLAREPARAM NAME="id" CLASS="java.lang.String"
    DESCRIPTION="The id of the category to display">
<DECLAREPARAM NAME="navAction" CLASS="java.lang.String"
    DESCRIPTION="How to change the navigation history. Choices are
    push, pop and jump. Blank is treated as push.">

<dsp:setvalue bean="/atg/userprofiling/Profile.currentLocation"
     value="catalog_category"/>

<dsp:droplet name="/atg/commerce/catalog/CategoryLookup">
  <dsp:param bean="/OriginatingRequest.requestLocale.locale"
       name="repositoryKey"/>
  <dsp:oparam name="output">

  <%/* Send a Views Item event that we browsed this category */%>
  <dsp:droplet name="/atg/commerce/catalog/CategoryBrowsed">
    <dsp:param name="eventobject" param="element"/>
  </dsp:droplet>

  <dsp:include page="../common/HeadBody.jsp" flush="true">
    <dsp:param name="pagetitle" param="element.displayName"/>
  </dsp:include>

  <dsp:include page="../common/StoreBrand.jsp" flush="true"></dsp:include>

  <span class=storelittle>
    <dsp:include page="common/breadcrumbs.jsp" flush="true"><dsp:param
         name="displaybreadcrumbs" value="true"/></dsp:include>
  </span>
  <p>

  <!-- 2 column table  -->
  <table cellspacing=0 cellpadding=0 border=0>

     <!-- 1st column: -->
     <tr valign=top>
       <td>
         <dsp:img src="../images/cat7.jpg"/>
       </td>
       <td>&nbsp;&nbsp;</td>
       <td>
         <!-- Show promotions -->
         <dsp:include page="../common/DisplayMediaSlot.jsp"
              flush="true"><dsp:param name="NumToDisplay"
              value="1"/></dsp:include>
       <p>
         <!-- Search -->
         <dsp:include page="../search/SimpleSearchFragment.jsp"
              flush="true"><dsp:param name="FormAction"
              value="SimpleSearch.jsp"/></dsp:include>
       </td>
     </tr>
   </table>

   <span class=storebig>
     Browse <dsp:valueof param="element.displayName"/>
   </span>
   <p>
  <% /*
   Note that we are displaying both child categories and products here.
   In our catalog setup, any category that uses this template will have
   only childProducts or childCategories but not both.  Therefore we can
   DisplayChildren of both kinds like this and one will be empty and thus
   render invisible.
   */ %>


   <dsp:include page="DisplayChildrenGeneric.jsp" flush="true">
     <dsp:param name="ChildArray" param="element.childCategories"/>
     <dsp:param name="Columns" value="4"/>
   </dsp:include>

   <dsp:include page="DisplayChildrenGeneric.jsp" flush="true">
     <dsp:param name="ChildArray" param="element.childProducts"/>
     <dsp:param name="Columns" value="4"/>
   </dsp:include>

   <p>

   <dsp:include page="../common/CatalogFooter.jsp"
        flush="true"></dsp:include>
   <dsp:include page="../common/Copyright.jsp" flush="true"></dsp:include>

  </dsp:oparam>
</dsp:droplet>
 
loading table of contents...