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

Alexander Kandzior alex at opencms.org
Wed Feb 16 16:25:24 CET 2005


Right!

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 4:23 PM
To: 'The OpenCms mailing list'
Subject: FW: [opencms-dev] CmsObject.existsResource(String resource) -
Version6



Found it - it must be CmsObject.getSitePath(CmsResource res)?

 

Olli

 


  _____  


From: Olli Aro [mailto:olli_aro at yahoo.co.uk] 
Sent: 16 February 2005 15:00
To: 'Alexander Kandzior'
Subject: RE: [opencms-dev] CmsObject.existsResource(String resource) -
Version 6

 

Ok - what is the recommended way to get full site path for a resource? I
cannot find method from the API (it is probably there but I keep missing it
:-().

 

Thanks,

 

Olli

 


  _____  


From: Alexander Kandzior [mailto:alex at opencms.org] 
Sent: 16 February 2005 14:53
To: olli_aro at yahoo.co.uk; 'The OpenCms mailing list'
Subject: RE: [opencms-dev] CmsObject.existsResource(String resource) -
Version 6

 

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


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



--
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



--
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/5d89d56b/attachment.htm>


More information about the opencms-dev mailing list