Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 44122 invoked from network); 2 Jul 2002 02:44:52 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Jul 2002 02:44:52 -0000 Received: (qmail 14077 invoked by uid 97); 2 Jul 2002 02:44:50 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 14036 invoked by uid 97); 2 Jul 2002 02:44:49 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 14024 invoked by uid 98); 2 Jul 2002 02:44:48 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Kevin Henrikson" To: "Struts Users Mailing List" , "Rick Reumann" Subject: RE: How to avoid a scriplet and make this cleaner? Date: Mon, 1 Jul 2002 19:46:05 -0700 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 V6.00.2600.0000 In-Reply-To: <18717323307.20020701222229@reumann.net> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Try to cast the value to a string. Also you might want to check out multibox... Like this: -kevin > -----Original Message----- > From: Rick Reumann [mailto:maillist@reumann.net] > Sent: Monday, July 01, 2002 7:22 PM > To: Struts Users Mailing List > Subject: How to avoid a scriplet and make this cleaner? > > > For this example I have an ArrayList of "cars" (which are CarBeans > with String carName, int id ). I want to iterate over this ArrayList > and set up each car name with a checbox next to it with the id as the > value. My FormBean has the property String[] carID to get the cars > selected. > > The problem is I can't seem to avoid using a scriplet and can't seem > to use the checkbox tag to set up the following: > > > > > > > > > > > I want to avoid having to use the scriplet for the value above. I also > get errors when I try to use the tag for the checkbox with the > scriplet: > > > > > Any ideas how I can make the above code cleaner and/or get the > checkbox tag to work? > > TIA > > -- > > Rick > > mailto:maillist@reumann.net > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: