Return-Path: Delivered-To: apmail-tiles-users-archive@minotaur.apache.org Received: (qmail 14636 invoked from network); 22 Oct 2009 07:31:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Oct 2009 07:31:07 -0000 Received: (qmail 32447 invoked by uid 500); 22 Oct 2009 07:31:06 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 32383 invoked by uid 500); 22 Oct 2009 07:31:06 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Received: (qmail 32373 invoked by uid 99); 22 Oct 2009 07:31:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 07:31:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antonio.petrelli@gmail.com designates 209.85.220.214 as permitted sender) Received: from [209.85.220.214] (HELO mail-fx0-f214.google.com) (209.85.220.214) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 07:30:58 +0000 Received: by fxm10 with SMTP id 10so8565437fxm.8 for ; Thu, 22 Oct 2009 00:30:37 -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 :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7FUytZFw+9Vw9NB45IFsPdhoFBHjFo47sThHNiQzY9I=; b=mqxz/yV9M6colfNi3JmzqdNmEY7zb8uD7+VWouvE8oCinrSmxeZX3s8x+gNJ0/+xOO uWTOxhLVewxLF9d+PQ77pQ6FO0x5WEQTikcjYJWeP/SiwXFIch0IHuZuzVw8gfaNAOCP e6Eeh5KgrzqcxPABeqHRvHbOYPTZP0LRLE1g0= 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:content-transfer-encoding; b=jNZDUaUSMiydfBnzk7DENz5qGnYf0tf1YHs47B3mcjdDVXZybZSrLB2J13uanuBx9g dOfmqIdDaRkoAJPnhbXUiZkRmooYP2FM6Tqt6HxUYzQtyXKgjmqJn5E95UNPMbM5oMll gBKp7FxqGl5ClLMQJ1E4vhqhDjgcHyALp60L0= MIME-Version: 1.0 Received: by 10.204.20.79 with SMTP id e15mr603215bkb.11.1256196637723; Thu, 22 Oct 2009 00:30:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Oct 2009 09:30:37 +0200 Message-ID: Subject: Re: Comparing Struts2 values with Tiles2 strings From: Antonio Petrelli To: users@tiles.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/10/21 Brian Stewart : > > Can someone please tell me if there is a way to do a comparison between a= Struts2 value and a String read in from Tiles2? =A0I'll post the code as I= think it should work below. =A0If I just display the tiles value, I see it= , but the conditional statement doesn't seem to evaluate correctly... > > > 1 =A0 > 2 > > }"> > ... > As usual, you cannot use a JSP tag inside another JSP tag, you have to use it outside. However, exports an attribute as a scripting variable, exports an attribute in a context (page, request, session, application) and I don't know if it can be used in a comparison with a value got from a ValueStack (I don't know Struts 2 as much as you). Antonio