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 JSP page using the Webapp Bindings

Introduction

This guide describes how to link layouts to JSP 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 JSP 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. Link the JSP tags into your page by adding the following taglib element at the top of your page:

<%@ taglib prefix="bm"
  uri="http://www.x1seven.com/projekts/bamboo/taglib" %>

  1. In the <head> of your JSP page, use the taglib to link in the layout with a tag such as:

<bm:applylayout layout="layouts/main.layout" />

See Also

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