[opencms-dev] Writing HTML directly into a vfs file
dcurrie at opensistemas.com
Fri Jun 27 15:47:02 CEST 2003
Can you be a little more specific about what you are trying to do? I
have various fragments of code I've written that might help you, but I
need to know more about the context. Are you going to do this from a
Content Definition? A JSP? A class called from a JSP? etc.
Basically, you should look at the CmsResource.createResource() calls.
You need to have a CmsResource object available, which is why I asked
those questions above.
By the way, /system/bodies/* is only used for files of type PAGE. If
you just want to create a PLAIN file in the VFS, all you have to do is
include the file path and body in the arguments to createResource() and
Hope this helps.
On Fri, 2003-06-27 at 12:13, Matthias Schmidt wrote:
> Hi list,
> I have to write a Class that can directly write HTML code into a file in the
> vfs. I know that the file content of a file
> really is stored in a file
> inside an XML tag. I guess, there MUST be an OpenCms method that does
> exactly that for me, but I cannot find it. Has anybody got a hint for
> me? The Code
> and HTML editors must be using it, but I still cannot find it.
> Thanks in advance!
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
More information about the opencms-dev