I'm new to using nested tags.  I've worked through the keyboard monkey
tutorial and started experimenting with the nested tags on my own.  I've run
into something that perplexes me.  My tree's are inverted when I use
recursive calls to a jsp that iterates over the nested nodes. i.e.:

---------------------
nested.jsp
...
<nested:root>
  <nested:iterate property="nodes">
    <nested:write property="nodeName"/><br>
     <jsp:include page="nested.jsp" />
  </nested:iterate>
</nested:root>
...
---------------------

I would expect the page to display:

root
  node1
    node1.1
    node1.2
  node2
   node2.1
     node2.1.1
etc...

The monkey tree tutorial and my experimentation displays the tree as:

     node2.1.1
   node2.1
  node2
    node1.2
    node1.1
  node1
root

Is this the expected behavior of the nested iterate tag when recursively
displaying a Composite (tree)?  Am I using the tags incorrectly?  How do I
get the JSP to display the tree "root down"?  Is there something in my
environment that is causing the JSP iteration to run before any printing to
the outputstream is executed?  Do I have to "hard code" all the iteration
levels into my JSP to get the tree to display "root down"?

Environment:
Struts 1.1 b2
Weblogic 5.1 sp11 (don't ask :-/ )
jdk 1.3.1
sdk 1.2.1

Thanks for any light you can shed on the subject.

Steve Hall
Programmer Analyst
Alterra Healthcare
(414) 918 5636
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to