[opencms-dev] CmsObject.existsResource(String resource) - Version 6

Alexander Kandzior alex at opencms.org
Wed Feb 16 15:53:16 CET 2005


It works as expected. The main reason is that all method that deal with
resources in the VFS are using the site path. not the root path.
 
Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/> 


 


  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
Sent: Wednesday, February 16, 2005 3:34 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] CmsObject.existsResource(String resource) - Version 6



Hi,

I am trying to check if the content is valid in my JSP using method
CmsObject.existsResource(String resource). I am trying to pass in the full
patch to the resource within VFS using method CmsResource.getRootPath(),
however it seems that CmsObject.existsResource(String resource) is expecting
the resource patch without the site identifier (this case /sites/default/).
Is this how it should work or should method CmsObject.existsResource(String
resource) respond to CmsResource.getRootPath() (which would be more
consistent in my mind anyway)?

Regards,

Olli


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050216/8f9e0064/attachment.htm>


More information about the opencms-dev mailing list