Bamboo - Stress-Free Page Layouts
Bamboo
About BambooQuickstart tutorialDownloadsGallery of page layouts built with BambooGallery of page layouts built with BambooUser ManualBamboo EditorContact
HOWTO: Apply a layout to a HTML page using the Webapp Bindings

Introduction

This guide describes how to link layouts to HTML pages through the Webapp Bindings.

Pre-Requirements

  • The webapp bindings have been installed in the webapp as described in HOWTO: Install the Webapp Bindings into a J2EE webapp

Suitable For

  • Languages: J2EE
  • Site types: all (public, internal / intranet, private)

Guide

  1. Create a HTML page that contains a <div> element for each region named with an id attribute.
  2. Create your Bamboo layout definition and save it to file in your web source-tree as a *.layout file. (Note saving your layout to file is optional but recommended).
  3. In the <head> of your JSP page create a <script> tag to link in the JavaScript dynamically generated by the LayoutServlet. For example:

<script language="javascript" src="layouts/main.layout"></script>

See Also

  • Quickstart Tutorial
  • HOWTO: Install the Webapp Bindings into a J2EE webapp