Provides access to the contents of a folder in an SQL content repository:

Class Name



Not provided

Required Input Parameters


The repository whose contents you wish to retrieve.

Optional Input Parameters


Sets the folder to view within the specified repository. If this parameter is omitted, the servlet bean starts execution at the repository’s root folder.


If set to true, sets the contentItems parameter to an array of content items within the current folder. The default setting is false.

Output Parameters


An array of content items in the current repository folder; set only if the input parameter getcontent is set to true.


An array of the subfolder paths beneath the current folder. Paths start from the folder specified by the input parameter folder; otherwise, paths start from the repository’s root folder.

Open Parameters


Renders output for the current repository folder.

Usage Notes

ContentFolderView provides access to the items and subfolders of an SQL content repository. You can use this servlet bean to iterate over a hierarchy of repository folders, starting from the folder specified by the input parameter folder. If this parameter is omitted, execution begins at the repository’s root folder.

You can also use this servlet bean with ContentDroplet to obtain the data of repository content items.

You must create the properties file for ContentFolderView in <ATG11dir>/home/localconfig/atg/dynamo/droplet and set it as follows:



The following JSP fragment can be included in a JSP that supplies page parameters that are used to set the ContentFolderView input parameters repository and folder.

<%@ taglib uri="" % prefix="dsp">
<% /* page takes two parameters, repositoryName and startFolder
      If startFolder is null, the servlet bean starts execution at the
      repository's root folder */ %>

<dsp:droplet name="/atg/dynamo/droplet/ContentFolderView">
  <dsp:param name="repository" param="repositoryName "/>
  <dsp:param name="folder" param="startFolder"/>
  <dsp:param name="getContent" value="true"/>
  <dsp:oparam name="output">
    <dsp:droplet name="/atg/dynamo/droplet/ForEach">
      <dsp:param name="array" param="contentItems"/>
      <dsp:oparam name="output">
        <dsp:valueof param="element.path"/><br>
        <dsp:droplet name="/atg/dynamo/droplet/ContentDroplet">
          <dsp:param name="repository" param="repositoryName"/>
          <dsp:param name="item" param="element"/>
    <dsp:droplet name="/atg/dynamo/droplet/ForEach">
      <dsp:param name="array" param="subFolders"/>
      <dsp:oparam name="output">
        <dsp:valueof param="element.path"/><br>
        <dsp:include page="folder.jsp">
          <dsp:param name="testFolder" param="element"/>

Given the following content repository folder hierarchy:

This diagram is described in the preceding text

Execution of the JSP extract yields the following output:

  ##text from R07.txt
  ##text from RQ1.txt
  ##text from RQ2.txt
  ##text from RQ3.txt
  ##text from RQ4.txt

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices