Bamboo - Stress-Free Page Layouts
Bamboo
About BambooQuickstart tutorialDownloadsGallery of page layouts built with BambooGallery of page layouts built with BambooUser ManualBamboo EditorContact
HOWTO: Install the Webapp Bindings into a J2EE webapp

Introduction

The Bamboo webapp bindings provides the LayoutServlet and the JSP taglib for applying Bamboo layouts to pages. This guide describes how to install the Bamboo webapp bindings into a webapp.

Suitable For

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

Guide

  1. Get the following JAR's from the distribution's lib directory and add them to your webapp's WEB-INF/lib directory:
    • x17_sft_curium_core_@meta.projekt.version.full.underscored@.jar
    • x17_sft_curium_webapp_bindings_@meta.projekt.version.full.underscored@.jar
  2. Also get the following JAR's from the distribution's 3rdparty directory and add them to your webapp's WEB-INF/lib directory:
    • log4j-1.2.11.jar
  3. If you are installing the Bamboo Webapp Bindings into a running webapp, you may need to reload the webapp or restart the servlet container for them to be loaded. Consult the documentation for your servlet container for details.
  4. Add the following <servlet>, and <servlet-mapping> elements to webapp's WEB-INF/web.xml file. Remember that ordering is important in web.xml.

<servlet>
	<servlet-name>LayoutServlet</servlet-name>
	<servlet-class>com.x1seven.curium.layoutservlet.LayoutServlet</servlet-class>
</servlet>

<servlet-mapping>
	<servlet-name>LayoutServlet</servlet-name>
	<url-pattern>*.layout</url-pattern>
</servlet-mapping>

Note that the The JAR contains the *.tld file, so there's no need to declare it in web.xml.

See Also

  • HOWTO: Apply a layout to a HTML page using the Webapp Bindings
  • HOWTO: Apply a layout to a JSP page using the Webapp Bindings
  • HOWTO: Uninstall the Webapp Bindings from a J2EE webapp