Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 37786 invoked from network); 2 Jul 2002 02:25:16 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Jul 2002 02:25:16 -0000 Received: (qmail 9156 invoked by uid 97); 2 Jul 2002 02:25:13 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 9128 invoked by uid 97); 2 Jul 2002 02:25:12 -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 9116 invoked by uid 98); 2 Jul 2002 02:25:12 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Mon, 1 Jul 2002 22:22:29 -0400 From: Rick Reumann X-Mailer: The Bat! (v1.60q) Personal Reply-To: Rick Reumann X-Priority: 3 (Normal) Message-ID: <18717323307.20020701222229@reumann.net> To: Struts Users Mailing List Subject: How to avoid a scriplet and make this cleaner? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - java.hostforweb.net X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - reumann.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: