[opencms-dev] Best way to determine existence of file in VFS
Andrew Kerr
akerr at fluid.com
Fri Mar 12 22:12:02 CET 2004
Hi there,
I am writing a JSP that needs to show a link to a file only if it exists
in the VFS. There don't seem to be any JSP tags that handle this.
I'm thinking of using a line of code such as:
CmsResource resource = getCmsObject().readFileHeader(target);
...to determine if the file exists (it'll throw an exception if it doesn't).
Is there any other preferred way of doing this?
Thanks,
Andrew Kerr
More information about the opencms-dev
mailing list