On Mon, 24 Feb 2003, Clement, Stephen wrote:

> Date: Mon, 24 Feb 2003 18:06:32 -0500
> From: "Clement, Stephen" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: need to display a tree struture in JSP
>
>
> If you need to display a tree in html using JSP, I don't think struts will
> help you out too much there.
> You can have struts hold the data in some form or other but the difficulty
> may lie in the displaying of data as there is no standard html tree and
> expanding/collapsing tree branches could be complex.
>
> I've created the html tree in java code with recursion and that was a fast,
> allbeit not flexible solution.
>
> I've also represented my tree data in xml and used xslt to transform it into
> an html tree structure consisting of ul and li tags.  That worked nicely
> (not too fast though) and was a very flexible solution.  Used javascript to
> expand/collapse.
>

Although Struts doesn't have a tree "component" as such, it can be used to
drive one.  For example, see the Tomcat 4.1.x administration webapp
(Struts 1.0.2 based), which builds a tree control for the left side of the
page, based on the components of the Tomcat instance being managed.

Sources can be retrieved (as part of Tomcat) via anonymous CVS or by
grabbing a nightly build snapshot.

> Steve

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to