[opencms-dev] Question about jsp.
Jonathan Woods
jonathan.woods at scintillance.com
Thu Jul 27 14:47:31 CEST 2006
OpenCms JSPs are indeed held in the VFS and therefore the OpenCms database,
but on demand OpenCms writes these out as files for compilation by the
Tomcat JSP compiler - because by default that's the only way Tomcat can
compile and execute JSPs. So when you define a JSP in the VFS and execute
it, you should expect also to see in the file system both the 'original' JSP
and a compiled (.class) version thereof.
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Martin Hoeller
Sent: 27 July 2006 09:15
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Question about jsp.
On Thursday 27 July 2006 09:19 Vardan Gevorgyan wrote:
> As I understand {$TOMCAT_HOME}\webapps\opencms\WEB-INF\jsp is the
> directory where OpenCMS put projects jsp files.
No, it's not. OpenCms holds your JSPs in a database, the so called VFS
(virtual filesystem). You can only access these files via the OpenCms
workplace or via other OpenCms classes.
Ruben Malchow wrote an OpenCms module which allows FTP access to the VFS.
The directory you mentioned is in my understanding something like a cache
for OpenCms.
> As I say in my last letter I have made a project (cba), but in that
> directory I couldn't see folder with name cba. Why I ask, because I
> want to change that jsp's files and make my own template, using
templateone.
If you want to change the template use the workplace and set the "template"
property of your JSPs. There is good documentation shipping with OpenCms
about how to write your own templates.
hth,
- martin
--
mailto:martin.hoeller at xss.co.at | As far as we know, our computer
http://stud3.tuwien.ac.at/~e9926483 | has never had an undetected error.
icq:45563199 | -- Weisert
More information about the opencms-dev
mailing list