From user-return-207604-apmail-struts-user-archive=struts.apache.org@struts.apache.org Fri Sep 24 13:45:51 2010 Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 21413 invoked from network); 24 Sep 2010 13:45:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 13:45:51 -0000 Received: (qmail 23695 invoked by uid 500); 24 Sep 2010 13:45:49 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23460 invoked by uid 500); 24 Sep 2010 13:45:46 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 23452 invoked by uid 99); 24 Sep 2010 13:45:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 13:45:45 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of liying.cn.2010@gmail.com designates 209.85.216.169 as permitted sender) Received: from [209.85.216.169] (HELO mail-qy0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 13:45:37 +0000 Received: by qyk7 with SMTP id 7so1593903qyk.14 for ; Fri, 24 Sep 2010 06:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=CbWFo7ckGRC8ZLK9p1ZyG58tK+7vfOcaCWtlAzwLrlc=; b=awUAJZXwu1jqhhuoU/z1u6UYF+NUs+d/bTa0/vH5lz33gWXoPOWbhRAkyLXX2IT8ld YGJJfOKbyoRGPWiwVnnpi3gIECLWnRfhe+wQCXl+vFDtGsjVxKUl1Tn2TbtqstWS8dJ7 uVcfiAxJkJlfFPGajQVZ7nLGa9QDwq9oXq4J4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Q8xWYLLWGi/YRZyalX2OXJq06fv0QQ1+d+QRW6axf+smR0kVWDaMq/kDBgcoINq33D N13jI3xIjun4uzNaSnDJHRdisN1r5PhkB0N/GbchBZhbd++F4AXyd/YYVAHMykpvJkbC 3nZhbHSSdmfj0R+FMbFyITfele8W7aF8Znuw8= MIME-Version: 1.0 Received: by 10.229.183.20 with SMTP id ce20mr2578963qcb.203.1285335915776; Fri, 24 Sep 2010 06:45:15 -0700 (PDT) Received: by 10.229.232.200 with HTTP; Fri, 24 Sep 2010 06:45:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Sep 2010 22:45:15 +0900 Message-ID: Subject: Re: Incorrect test syntax From: Li Ying To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=00163630e9dfad4c0f04910196c0 X-Virus-Checked: Checked by ClamAV on apache.org --00163630e9dfad4c0f04910196c0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Michael: I just readed the document of OGNL, it says that operator [=3D=3D] will use the method [equals] to check if objects are equal. http://www.opensymphony.com/ognl/html/LanguageGuide/apa.html#operators My bad. Can you post the source code of the Action class (and the [config] class)? I think i need see what the property "config.project" exactly is to find out what's going wrong. 2010/9/24 Micha=C3=ABl JERUSALMI > > Sorry, it didn't change a thing. It still goes by the else... > > > Date: Fri, 24 Sep 2010 22:32:04 +0900 > > Subject: Re: Incorrect test syntax > > From: liying.cn.2010@gmail.com > > To: user@struts.apache.org > > > > Hi Michael: > > > > Maybe you can not check if a String has same content with another by th= e > > operator [=3D=3D]. Try the method [String.equals()] instead. > > > > In your case, i think i should be: > > > > .... > > > > .... > > > > > > 2010/9/24 Micha=C3=ABl JERUSALMI > > > > > > > > Hi, > > > I'm working on a web application with Struts, made for several > projects, > > > and I'm trying to write a test to display (or not) a tab in case of a > > > particular project. > > > > > > I wrote a test, which positive result should be to add a new tab, and > which > > > negative result is to write the content of the ProjectName property. > > > > > > Here it is : > > > > > > > > >
  • Unsol= ved > > > Tickets
  • > > >
    > > > > > > //config.project > contains > > > the value "dba2" > > > > > > > > > The result so far as always been to write the content of the value > > > config.project, ie dba2 instead of writing the expected tab. > > > > > > I've tried several syntax, including test=3D"%{"config.project} =3D= =3D > 'dba2'", > > > but nothing worked. > > > > > > Hoping you could help me. > > > > > > Michael > > > > > --00163630e9dfad4c0f04910196c0--