you may also test if the *brand new* collection is defined with the
<logic:present> and <logic:notPresent> tags...

thomas.

> -----Original Message-----
> From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 08, 2003 6:14 PM
> To: 'Struts Users Mailing List'
> Subject: RE: iterator tag
> 
> 
> You sure?  'cause normally what I got is just nothing if the 
> list is empty.  
> 
> If the collection you are iterating over contain null values, 
> the loop will
> still be performed   but no page scope attribute (named by 
> the id attribute)
> will be created for that loop iteration. You can use the 
> <logic:present> and <logic:notPresent> tags to test for this case.
> 
> However, the *brand new* collection has to be defined 
> somehow, i.e., itself cannot be null.
> 
> Hope this helps.
> 
> 
> 
> -----Original Message-----
> From: LUCERO,DENNIS (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] 
> Sent: September 6, 2003 2:34 PM
> To: ' ([EMAIL PROTECTED])'
> Subject: iterator tag
> 
> 
> What is the correct behavior of the 
> <logic:iterator
>  
> tag when given a collection of size zero
>  
>  
> (when the named collection is a brand new linkedList this tag 
> causes a page to crash??)
>  
>  
>  
> We come from the land of the ice and snow
> With the midnight sun, where the hot springs glow
> The hammer of the gods, will drive our ships to new lands
> Fight the horde, Sing and cry
> Valhalla I am coming
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to