Whether using a tag library or writing scriptlets, there are a few things that can cause confusion and surprise to developers new to the platform.
The VFS, in spite of its name, does not behave exactly like a real file system. Furthermore, neither the servlet engine nor the JSP interpreter is aware of the existence of the VFS. When using JSP tags, be wary of the JSP
directive tags, and the
import tag from the Java Standard Tag Libraries (JSTL). These tags do not handle the VFS/real file system split very well and can have some unpredictable results. According to OpenCms developers, judicious use of the
import tag will work for some files, but the caveats are many, so I do not recommend it. ...