[opencms-dev] Accessing html file from sites folder

Manoj Kumar Konakalla konakalla at gmail.com
Thu Nov 10 11:59:22 CET 2005


Hi,
 I am trying to read the values of elements from an existing document in
sites folder. Actual file path is
"/sites/default/BlackRock/Modules/Emp_001.html"
 I want to read it like this
  CmsObject cmsObject = cms.getCmsObject();
String employees= "/sites/default/BlackRock/Modules/Emp_001.html";
CmsDefaultResourceCollector collector = new CmsDefaultResourceCollector();
List allEmployees= collector.getResults(cmsObject, "allInFolder",
employees);
  But it is not identifying the path. Is there any way to pass the filepath
here?
 I tried this way also,
  String employees= "Emp_${number}.html|204";
 But it is of no use.
 Any kind of help will be appreciated.
 Thanks
Manoj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051110/07551a7b/attachment.htm>


More information about the opencms-dev mailing list