Skip to main content

tocItem in Java code

No replies
Anonymous

I'm writing a controller class in order to create a web version of
JavaHelp that doesn't use JavaScript. I also created two classes (Tree &
TreeNode) that I use to create the menu tree. In my test jsp page I have
the following code (Tree tocTree = new Tree())

" tocView="<%= curNav %>" >
<%
tocTree.setNodes(parentID, nodeID, iconURL, hame, helpID, contentURL,
expansionType);
%>

I've gone through both the JavaHelp documentation and the API doc and
added the following code in my controller class with no problem...

TOCItemTag tocItem = new TOCItemTag();
tocItem.setHelpBroker(helpBroker);
tocItem.setTocView(tocView);

The issue is that I can't figure out how to either load my tocTree object
from tocItem or actually pull data (such as the parentID) from the tocItem
object.

Thanks...

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.