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
- Create a JSP page that contains a <div> element for each region named with an id attribute.
- 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).
- 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" %>
- 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









