<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Courier New">CmsObject</font></small><br>
<pre>public boolean <b>existsResource</b>(java.lang.String resourcename)</pre>
<br>
<small><font face="Verdana">Joe</font></small><br>
<br>
<blockquote type="cite">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">Hallo.
<br>
<br>
How can I do to know if exists a file in OpenCMS 6.2.1?
<br>
<br>
I was using the followings lines with OpenCMS 5.0:
<br>
<br>
-----
<br>
try
<br>
{
<br>
cms.readFileHeader(filename);
<br>
existe_en_version = true;
<br>
}
<br>
catch (CmsException e)
<br>
{
<br>
existe_en_version = false;
<br>
}
<br>
-----
<br>
<br>
Can you help to me??
<br>
</div>
</blockquote>
</body>
</html>