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
- Create a HTML 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).
- 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









