<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid44FF2B78.8020509@ebstudio.com" type="cite">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>
</blockquote>
<br>
Dear Andres,<br>
<br>
please just write to the list. <br>
<br>
CmsResource res = <b>cms</b>.<b>readResource</b>(filename);<br>
<br>
For things like this it's good to consult the Javadoc, especially for
the classes CmsObject and CmsJspActionElement.<br>
<br>
Christian<br>
</body>
</html>