[opencms-dev] My deployment - does anyone else use OpenCms this way?
John Mazzocchi
John.Mazzocchi at tafmo.com
Tue Apr 18 06:21:36 CEST 2006
Ok, I've reached the point where I think I understand a few things now ...
This is what I've done ...
Since I know that my existing sites run just fine as JSP pages under Tomcat, I'm going to use OpenCms basically as a publishing engine. The statically exported sites will *be* the live sites, running under Tomcat, independently of OpenCms - as they always have been.
I've configured the default StaticExport Handler to be the AfterPublish one, and also created a ROOT directory under each site module, and so every time I make a change I just do a Publish, and I have a new set of updated, live pages.
Ok, now here's the rub ...
Some of my pages are JSPs that are called by some of the HTML pages and also by some of other JSPs. Now I've had to create these as "Text file" type under ROOT, because if I create them as "JSP" OpenCms renames them to e.g. helper.jsp.html (and also they are now empty files).
But as "Text file" type they are exported correctly.
Now for the HTML pages, all I need is a template (which will be a JSP under "templates" containing layout code and navigation JavaScript only) ...
But what about the other JSPs? They will have JSP code inside them (no taglibs, just straight Java) ... is the JSP template mechanism of OpenCms going to interfere with them if I make them "Page" type? If I make them "Text file" type will OpenCms not apply the JSP template (as I think that it won't)?
I guess I'm gonna have to try, but any guidance or previous experiences of anyone would surely be of help. Thanks.
Regards
John Mazzocchi
More information about the opencms-dev
mailing list