You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by "Mehta, Chirag" <ch...@bankofamerica.com> on 2005/09/30 18:57:49 UTC

Recursing Directories

Hi all,

We are evaluating whether or not Forrest would be ideal for out needs. 

Is it possible to recurse a directory on a server somewhere and have the
files show up on the webpage, for example every five minutes?

Thanks in advance, 

Chirag Mehta



Notice to recipient:
The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are authorised and regulated by the Financial Services Authority.


Re: Recursing Directories

Posted by Ross Gardler <rg...@apache.org>.
Mehta, Chirag wrote:
> Hi all,
> 
> We are evaluating whether or not Forrest would be ideal for out needs.
> 
> Is it possible to recurse a directory on a server somewhere and have the 
> files show up on the webpage, for example every five minutes?

Not "out of the box", but with only very minor customisations.

First of all, you say "every five minutes". Forrest can run in one of 
two modes - static generation or dynamic generation. In dynamic mode the 
page would be updated every time it is requested. In static mode the 
pageis updated each time the site is regenerated.

If you choose static mode we have a forrestbot that can automate the 
process of building and deploying the site.

To customise you application you will need to create a custom sitemap 
entry that uses the DirectoryGenerator from Cocoon. This produces and 
XML file listing (optionally filtered and sorted). You then pass this 
through an XSL to produce your content page.

If you want to do this we can talk you through it, but you will need to 
get an understanding of Forrest first. Our docs should help there. In 
particular:

http://forrest.apache.org/docs_0_70/your-project.html#sitemap.xmap

Ross