[opencms] [opencms-dev] cmsobject

Markus Daniel markus.daniel at synyx.de
Fri Jun 24 13:02:55 CEST 2005


bub habub wrote:
> i'm sorry but unfortunately this page is blocked here.
blocked??
why is this page blocked??

> can anyone post the entry?
here you are:
Code:

// Create a JSP action element
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, 
response);
// get actual folder
String currentFld = cms.info("OpenCms.request.folder");
// debug
out.println("Current folder=" + currentFld);
CmsObject cmsObject = CmsFlexController.getCmsObject(request);
List resources = cmsObject.getResourcesInFolder(currentFld, 
CmsResourceFilter.DEFAULT_FILES);
// debug
out.println(resources);


hth,
regards,
Markus



More information about the opencms-dev mailing list