Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 95444 invoked by uid 500); 24 Jul 2001 15:36:29 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 95386 invoked from network); 24 Jul 2001 15:36:28 -0000 Received: from blackhole.arboc.com (216.254.97.141) by h31.sny.collab.net with SMTP; 24 Jul 2001 15:36:28 -0000 Received: (qmail 20093 invoked from network); 24 Jul 2001 15:36:29 -0000 Received: from unknown (HELO mrabin) (63.107.138.130) by blackhole.arboc.com with SMTP; 24 Jul 2001 15:36:29 -0000 Reply-To: From: "Melissa" To: Subject: RE: Another question about the logic:iterate tag Date: Tue, 24 Jul 2001 11:35:39 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <3B5D8E1D.832C054A@apache.org> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I have just tried this, but the "id" attribute is apparently required. My guess is that this can just be an arbitrary variable... However, the bigger issue seems to be that the iterate tag isn't really suited to the retrieval of more than one oject (i.e. the hashmap's key/value pairs)... here's the old code I was hoping to "convert": <% } %> Is there a way to integrate this into a Struts iterate tag, or should i just stick with the original code? Thanks so much for your help. Melissa (Strutting better every day) -----Original Message----- From: Ted Husted [mailto:husted@apache.org] Sent: Tuesday, July 24, 2001 11:03 AM To: struts-user@jakarta.apache.org Subject: Re: Another question about the logic:iterate tag The docs say "JSP bean", but the meaning there is broad. So, yes, you can do this: request.setAttribute("hashmap",hashmap); ... To use an actual bean, you would also specify the property which resolves to javaBean.getHashmap() Melissa wrote: > > Hi again. I am wondering whether the logic:iterate tag requires you to use > a bean (or bean property) as the collection to iterate over. I would > actually like to iterate over a hashmap that i placed in the request in my > action class, but I have not determined through the user docs whether this > is possible or not. > > Any help would be greatly appreciated! > > Melissa -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/