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 LayoutWebService

Introduction

This guide describes how to link layouts to a JSP page through the LayoutWebService.

  • Layouts can be linked through the public web service at http://www.x1seven.com/projekts/bamboo/1.0/layoutservice.
  • 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: public (if using the public web service); internal / intranet, private (if using a local installation of the web service

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 through the web service with a tag such as:

<!-- Link the layout in through the public web service -->
<bm:applywebservice
  layoutAddress="http://myhost.com/layouts/main.layout" />

<!-- Link the layout in through the local web service -->
<bm:applywebservice
  serviceAddress="http://myhost.com/layoutwebservice"
  layoutAddress="http://myhost.com/layouts/main.layout" />

See Also

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