I solved the problem with a hack work-a-round:  I made a java bean that
has one property (of type object).  I stick the Collection in that
object and then nest off that.  It works.  I don't know why the code
below doesn't work but at least I can keep working.

> -----Original Message-----
> From: Michael [mailto:michael@;idtect.com] 
> Sent: mercredi 6 novembre 2002 18:28
> To: [EMAIL PROTECTED]
> Subject: logic:iterate works but nested:iterate doesn't
> 
> 
> The first iterate (using logic) works fine.  But the second (using
> nested) gives me:
> 
> [ServletException in:/jsp/status/alarm_status.jsp] null' 
> 
> I'm not sure why it's not working.  I'm successfully using 
> the nested tags for iterating over a bean's property (that is 
> a Collection).  But in this case, I have a Collection in the 
> request scope that I want to iterate over.  Am I doing this correctly?
> 
> Example:
> 
> <jsp:useBean id="ALARMS" scope="request" 
> type="java.util.Collection" />
> 
> <logic:iterate id="alarm" indexId="myIndex" name="ALARMS">
> test
> </logic:iterate>
> 
> <nested:iterate id="alarm" indexId="myIndex" name="ALARMS"> 
> test </nested:iterate>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@;jakarta.apache.org>
> 


--
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