Hmmm I am putting it in copse like this Request.setAttribute("blah" , new LinkedList());
When I iterate over this it causes the page to crash.... Hmmmm.... I will chack the code for simple mistakes but htats why I was wondering What the correct behavior in this instance is??? -----Original Message----- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 10:14 AM 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]