[opencms-dev] CmsObject.existsResource(String resource) - Version 6
Olli Aro
olli_aro at yahoo.co.uk
Wed Feb 16 15:34:11 CET 2005
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/4d6da62b/attachment.htm>
More information about the opencms-dev
mailing list