Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 57085 invoked by uid 500); 12 Jul 2001 08:05:55 -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 57004 invoked from network); 12 Jul 2001 08:05:43 -0000 Received: from demo9.credittrade.com (HELO dirac.mutant-tech.com) (root@212.82.88.2) by h31.sny.collab.net with SMTP; 12 Jul 2001 08:05:43 -0000 Received: from galileo.mutant-tech.com (galileo.mutant-tech.com [10.10.0.1]) by dirac.mutant-tech.com (8.9.3/8.8.7) with ESMTP id JAA03355 for ; Thu, 12 Jul 2001 09:05:46 +0100 Received: by galileo.mutant-tech.com with Internet Mail Service (5.5.2653.19) id <34J8ZV34>; Thu, 12 Jul 2001 09:05:48 +0100 Message-ID: <6FED05C82365D3118C4B009027AD0475010524AF@galileo.mutant-tech.com> From: Meeraj Kunnumpurath To: "'struts-user@jakarta.apache.org'" Subject: RE: multiple checkboxes Date: Thu, 12 Jul 2001 09:05:42 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N You can only define the multibox tag within the form tag. I think the multibox tag will check for an indexed property within the form bean corresponding to the name defined for the checkoxes and render each one = of them as checked or unchecked accordingly. An example is shown below <%=3D currentSkill %> <%=3D currentSkill %>
In the example above the body content of the multibox tag is used to = define the value attribute of each check box. The name of all the checkboxes = will be skills. The state of each checkbox is computed by checking the = indexed property skills defined in the action form bean. You can also use the multibox tag without relying on the body content. Regards =20 -----Original Message----- From: Leander Jedamus [mailto:jedamus@Fh-Worms.DE] Sent: Thursday, July 12, 2001 8:41 AM To: struts-user@jakarta.apache.org Subject: Re: multiple checkboxes Hi! Now my question is, how do I get the aid from the Form into the checkbox? Meeraj Kunnumpurath wrote: >=20 > You can use the multibox tag >=20 > Regards >=20 > >=20 > -----Original Message----- > From: Leander Jedamus [mailto:jedamus@Fh-Worms.DE] > Sent: Thursday, July 12, 2001 8:21 AM > To: struts-user@jakarta.apache.org > Subject: multiple checkboxes >=20 > Hi! >=20 > I have one problem I cannot solve on my own. > I have an not known number of answers with answer-ids in my database. > Now I want to create a Form to reflect that. > How do I manage an array of checkboxes? > What do I have to do to get the following HTML-code?: > Text > Text2 >=20 > Thanks in advance > Leander > -- > Dipl.-Inf. (FH) Leander Jedamus > Presse- und =D6ffentlichkeitsarbeit > Fachhochschule Worms, Erenburgerstr. 19, 67549 Worms, Tel.: 06241 > 509-169 > mailto:presse@fh-worms.de --=20 Dipl.-Inf. (FH) Leander Jedamus Presse- und =D6ffentlichkeitsarbeit Fachhochschule Worms, Erenburgerstr. 19, 67549 Worms, Tel.: 06241 509-169 mailto:presse@fh-worms.de