hi!
just a clarification,
useBean is used to bring the bean into scope, in my example above the bean is already placed in the session.
with nested tags, i thought the point was the the outer tag defines the bean (with eg: nested:root), then the inner
tags refer to that bean by default.
eg:
with what i had
<nested:root name="newUser">
<nested:write property="name"/>
</nested:root>
wouldn't that be taken as name being a property defined in the bean newUser which has been introduced with the nested:root statement. otherwise what would be the motivation for using a nested statement.
with what you gave as an answer it, nested root it seems is being used only to provide an id for the bean tag (like you said with the useBean tag). why then would you use it, if you already had a bean placed in session scope.
Also the api for the nested tag, nested:root does not include an id attribute. so HOW would that work?
a tutorial i went through for recursing through tree structures and then displaying them used something like,
<nested:root name="newUser">
<nested:nest property="functions" >
<jsp:include page="treenode.jsp" />
</nested:nest>
</nested:root>
treenode.jsp goes as
<nested:root>
<nested:write property="nodeName"/>
<nested:iterate property="children">
<jsp:include page="treenode.jsp"/>
</nested:iterate>
</nested:root>
where newUser has a property functions, functions in turn has a property nodeName and children. and children again have the same structure in them (a tree)