[opencms-dev] How to obtain the names and path of the files of a directory in the vfs?

Jean C. Favila jcfavila at yahoo.com
Tue Dec 2 21:53:02 CET 2003


Hi,

Try this:

<% CmsJspActionElement cms = new CmsJspActionElement(
                            pageContext, request, response);
   List files = cms.getCmsObject().getFilesInFolder(folderName);
   for (Iterator it = files.iterator(); it.hasNext(); ) {
     CmsFile file = (CmsFile) it.next();
     out.println(file.getName());
   }
%>

Regards

Jean C. Favila

--- Salvador Santander <dominion.salvador.ext at juntadeandalucia.es> wrote:
> How can I obtain the names and path of the files of a directory with a
> property value in the vfs of the project online with JSP? I've used the
> getFilesWithProperty() method of CmsObject but when try to view the page,
> anything appears.
> Thanks.
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/



More information about the opencms-dev mailing list