WebObjectTree for JSP
WebObjectTree for JSP Documentation

This document is an API reference for the WebObjectTree JavaBean. It contains brief descriptions for the client-side and server-side properties, methods and events used by the control.

For demonstration of these APIs, you are encouraged to see the WebObjectTree samples. They contain many interactive examples of their usage.

To place the WebObjectTree control on your JSP page, follow these steps:

Here is a minimal JSP page with the control integrated and the relevant WebObjectTree code highlighted:

<%@ page language="java" contentType="text/html;charset=UTF-8" import="Coalesys.WebObjectTree.*" %>
<%
    request.setCharacterEncoding("UTF-8");
    WebObjectTree webObjectTree1 = new WebObjectTree("WebObjectTree1", request.getParameterMap());
    webObjectTree1.addItem("hello, world");
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Sample Page</title>
    <script src="WebObjectTree.js" type="text/javascript"></script>
    <link href="WebObjectTree.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form action="index.jsp" method="post">
    <div>
        <%=webObjectTree1.renderControl()%>
    </div>
    </form>
</body>
</html>