Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[s2] Confused about <s:tree>

Brian Thompson

2007-03-19

Replies:

Hi, list

I'm trying to render a list of objects from my action class as a tree menu
using the Struts 2 <s:tree> tag, and I'm not having any luck. I can get the
static example from planetstruts to work, but the dynamic example only
leaves me scratching my head (Without digging in the source, how am I
supposed to figure out what a Category class does?).

The documentation for the tree tag (
http://struts.apache.org/2.0.6/docs/tree.html) is even worse.

Can anyone point out some examples that include what I need to set up in my
action class and how <s:tree attributes should correspond to action/model
class attributes?

Thanks,

-Brian
©2008 junlu.com - Jax Systems, LLC, U.S.A.