Return-Path: Delivered-To: apmail-velocity-user-archive@www.apache.org Received: (qmail 81108 invoked from network); 24 Mar 2010 18:57:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 18:57:11 -0000 Received: (qmail 2130 invoked by uid 500); 24 Mar 2010 18:57:11 -0000 Delivered-To: apmail-velocity-user-archive@velocity.apache.org Received: (qmail 2113 invoked by uid 500); 24 Mar 2010 18:57:11 -0000 Mailing-List: contact user-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Velocity Users List" Delivered-To: mailing list user@velocity.apache.org Received: (qmail 2105 invoked by uid 99); 24 Mar 2010 18:57:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 18:57:11 +0000 X-ASF-Spam-Status: No, hits=-0.2 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of the.malkolm@gmail.com designates 209.85.220.213 as permitted sender) Received: from [209.85.220.213] (HELO mail-fx0-f213.google.com) (209.85.220.213) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 18:57:04 +0000 Received: by fxm5 with SMTP id 5so301086fxm.29 for ; Wed, 24 Mar 2010 11:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=XQC2Ej0j71BZGPvH3EXXC749NdBbXBtR6SFk2xpNDdI=; b=N3DEyJkJCA4aowK2RqqXhQ1RR4xDPOONu7nwd/Z9c3N6DO/LJcJ8mUh9FKGgK+9hWN K7DPAKIHJhtVFq1BJ0xrmwwjTywTRc0K5eCUEL9XEB7DjJ7cPVxO5ZevbzUkpuTBydcg BqTJcPSXz/lmoGBI/HyMCIsBwNBMAkgGVMJ+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=A3xiIbP0klqVICTIHyBXFwsvqJqML5mUkcSZ2CWia1FQWktWNFCVWoWx/qUjPNhQIt PiuMUUPn58HkrLWHE/TveASZ11iKq6NImNLPuF/sxBAj9Wq9E4bjYXVxZNCL8xKMYKTv F2YCcHOgKCx1wzyHSOJWmRiO5sIaUQzG4bE8c= MIME-Version: 1.0 Received: by 10.103.126.9 with SMTP id d9mr1787198mun.128.1269457003091; Wed, 24 Mar 2010 11:56:43 -0700 (PDT) In-Reply-To: <28019574.post@talk.nabble.com> References: <28019574.post@talk.nabble.com> From: Alexander Krasnukhin Date: Thu, 25 Mar 2010 00:56:23 +0600 Message-ID: <2eb298b11003241156l87d2436gc8525fccaa6c50cd@mail.gmail.com> Subject: Re: Velocity html help To: Velocity Users List Content-Type: multipart/alternative; boundary=0016e6567e6cba168e0482907db0 --0016e6567e6cba168e0482907db0 Content-Type: text/plain; charset=ISO-8859-1 Not sure, haven't used Velocity for a long time but comparing strings with "==" doesn't seems right. Have you tried equals instead? On 25 March 2010 00:47, Anil h k wrote: > > Hi , > > I am trying to read a multiple checkbox in velocity this is my code. > > #foreach( $additional_province in > $opportunity.additional_provinces_821102568) > { > #if ($opportunity.additional_provinces_821102568.checked == true) > { > #if ($opportunity.additional_provinces_821102568.value == > "Quebec") > { > #set($value1 = "CSST"); > } > #end > #if (additional_provinces_821102568.value == "Ontario") > { > #set($value1 = $value1 + "WSIB"); > } > #else > { > #set($value1 = $value1 + "WSB"); > } > #end > } > #end > } > #end > > can anyone let me know what is wrong in this.. i just cannot get this right > . > > thanks ! > -- > View this message in context: > http://old.nabble.com/Velocity-html-help-tp28019574p28019574.html > Sent from the Velocity - User mailing list archive at Nabble.com. > -- Regards, Alexander --0016e6567e6cba168e0482907db0--