Book Image

Building Websites with OpenCms

Book Image

Building Websites with OpenCms

Overview of this book

This book takes you through the process of creating content-rich websites and applications using OpenCms. Although powerful and flexible, OpenCms can be daunting on first approach, but its advanced features reward the investment in learning. This book exists to ease Java developers into getting the most from OpenCms. OpenCms OpenCms is a professional-level, open source Website Content Management System, with which you can create and manage complex websites. Based on Java and XML technology, it fits into almost any modern IT environment. With hard-won experience of the practical difficulties faced by developers working with OpenCms, this book is the embodiment of the author's expertise, and the perfect way to master the system.
Table of Contents (12 chapters)
Building Websites with OpenCms
Credits
About the Author
Introduction

Static Export


Static export takes the idea of statically serving documents one step further than serving static documents from OpenCms—it removes the dependency of the documents on OpenCms. In short, it exports the contents of the Online project into an entire self-sufficient website that can be served from a run-of-the-mill web server. Most resources are rendered statically, though you still must manually set the export property for JSP pages.

Successfully implementing a static export of this type can be a little tricky. First of all, your site must have very little JSP code, and that which exists must be able to be rendered into static HTML during the publishing cycle (for instance, the site navigation that we examined in Chapter 4 could be safely rendered into HTML for a published project, since its output will always be the same for a published project).

Configuring for Static Export

Generally speaking, static exports are done in the same manner as configuring the site for serving static...