<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
p.sub, li.sub, div.sub
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=sub><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=sub><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial'>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 (</span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>this case /sites/default/).
Is this how it should work or should method </span></font><font size=2
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>CmsObject.existsResource(String
resource) respond to CmsResource.getRootPath() (which would be more consistent
in my mind anyway)?<o:p></o:p></span></font></p>
<p class=sub><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial'>Regards,<o:p></o:p></span></font></p>
<p class=sub><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial'>Olli<o:p></o:p></span></font></p>
</div>
</body>
</html>
<BR>
<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Anti-Virus.<BR>
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005<BR>
</FONT> </P>