My guess is that your IterationTagExtraInfo says that the IterationTag
creates a variable named "name" and since you're trying to nest one within
the other, the translater has created two variables named "name" in the same
scope, which of course is illegal.  You might want to investigate either
changing the variable's scope in the VariableInfo you're using in
IterationTagExtraInfo, or maybe allow the variable to be named explicitly
from within the tag, something like:

<Joel:IterationTag name="outterValue" list=arrayList>
 <stuff>
  <%=outterValue%>
   <Joel:ItrationTag name="innerValue" list=arrayListTWO>
        <moreStuff>
          <%=innerValue%>
   </Joel:IterationTag>
 </stuff>
</Joel:IterationTag>

(*Chris*)

----- Original Message -----
From: "Joel Carklin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 7:43 AM
Subject: [JSP-INTEREST] JSP Tags


Hi,

I have a iterator Tag which iterates through an arrayList and with each
iteration assigns a value
to a variable, which can then be displayed in the jsp using the <%=...%>

My Problem is that I am using the iteration tag within a bit of the page
which is itself part of the iteration tag. Ie as follows:

<Joel:IterationTag list=arrayList>
 <stuff>
  <%=valueFromIterationVariable%>
   <Joel:ItrationTag list=arrayListTWO>
        <moreStuff>
          <%=valueFromIterationVariable%>
   </Joel:IterationTag>
 </stuff>
</Joel:IterationTag>

When trying to compile the jsp I get the error:

        Error parsing JSP page joelsIterationPage.jsp line 46
        Bean 'name' already defined

Is this because I am using a the same tag within itself (even with
different attributes)??
Does the compiler think the tag is a bean? Or am I missing something...

Any comments / help appreciated

Joel

=========================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=P
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to