Java-JSP Interface for HierMenus (1/4)
A Java-JSP Menu Builder for HierMenus
By Paulo Caroli and Srimant Misra
This article shows you how to generate the menu content for a hierarchical menu dynamically. WebReference.com sells HierMenus, a DHTML hierarchical menu that provides cross-browser navigation of your Web site through drop down and pop-up menus. This article enables you to extend such a hierarchical menu, adding the capability to work with dynamic content.
In Web applications menus are widely used; for some applications non-static menu content is needed. A menu can have dynamic content for a variety of reasons: a menu that changes each day of the week, a menu with user specific content, or a menu that has its contents coming from a constantly changing data source.
that contains the data for the static menu content. By having the
contents generated on the fly, you add more dynamism to your HierMenus behavior.
- Tomcat or some other servlet container. Tomcat is available at http://jakarta.apache.org/tomcat/.
- The Java data structure classes
HMContentTreeItem. Their code is provided later in this article.
This article presents a solution based on a JSP platform. The same data structure can be implemented in other languages and the solution adapted to an ASP platform.
Created: November 13, 2002
Revised: November 13, 2002