[opencms-dev] Path issue

rvc_one at mizar.com.br rvc_one at mizar.com.br
Mon Feb 21 18:20:54 CET 2005


Hi all,
 
I'm trying to open a xml resource to read its content and there is a problem
I cant understand:
 
0) List listResources = collector.getResults(cmsObject, "allInFolder",
"/folder/resources/temp_${number}.xml|33");
1) for (int i = 0; i < listResources.size(); i++) {
2)    CmsResource aNews = (CmsResource)listResources.get(i);
3)    String filePath = listResources.getRootPath();
4)    CmsFile sourceFile = cmsObject.readFile(filePath);
 
The line 3 returns the path
"/sites/default/resource/folder/resources/temp_001.xml" and the line 4 try
to read the file at path
"/sites/default/sites/default/resource/folder/resources/temp_001.xml" where
the exception occurs.
 
Someone could explain how could I solve this problem???
 
Thank in advance,
 
Rommel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050221/70303135/attachment.htm>


More information about the opencms-dev mailing list