Hi there,

i am desperate with the nested-Tags.
My Problem: I have a bean A with holding a collection of bean B. Now i would like to get access, through the collection, to get each bean B.
What do i get? I get each Bean B - instance in the main.jsp. Thats OK! But i get only the first bean b - instance in the included tree.jsp and i have now idea where i make a mistake. (I read the monky-tutorial and googled a lot). Maby u have an idea or can give me a tip.


See the small example:

The main JSP-Page looks like this:
[...]
<jsp:useBean id="A"
class="Catalog"
scope="session"/>
<nested:root name="A">
<nested:iterate property="bs">
come from main: <nested:writeNesting/><br>
<jsp:include page="/tree.jsp" />
</nested:iterate>
</nested:root>
[....]


The tree.jsp looks like this:
[...]
<nested:root>
come from tree: <nested:writeNesting/><br>
</nested:root>
[...]


The generated output looks like this: come from main: bs[0] come from tree: bs[0] come from main: bs[1] come from tree: bs[0] come from main: bs[2] come from tree: bs[0] come from main: bs[3] come from tree: bs[0]

I am using on a linux OS:
Tomcat: 4.1.27
Struts: 1.2.4

Greets
Jens




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



Reply via email to