[opencms] [opencms-dev] cmsobject

Jorge González informatico at hotelparadisepark.com
Fri Jun 24 13:32:48 CEST 2005


// 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);




More information about the opencms-dev mailing list