Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 72662 invoked from network); 6 Apr 2007 04:47:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Apr 2007 04:47:21 -0000 Received: (qmail 78510 invoked by uid 500); 6 Apr 2007 04:47:18 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 78478 invoked by uid 500); 6 Apr 2007 04:47:18 -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 78467 invoked by uid 99); 6 Apr 2007 04:47:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 21:47:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of paulus.benedictus@gmail.com designates 64.233.162.239 as permitted sender) Received: from [64.233.162.239] (HELO nz-out-0506.google.com) (64.233.162.239) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 21:47:09 -0700 Received: by nz-out-0506.google.com with SMTP id i11so431116nzi for ; Thu, 05 Apr 2007 21:46:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=PA4iKPYNVax8wnVLqExhZydcFJV9mtWjHv5ciC1tlRn2heCjuSwOPwwRSk+j9E1+EBTy52R8No+pCy5D0fIazvSVxGYeL3nWmi8DAOGMMTAAT/2/LIWqGOgtUXE3sl6RM83kqwUaBfQfXeG0URa2aVo+YOF0OHXWtcwuc9vI4rg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=rfg2+gUGB9OS1JzJV4qpJu3dN0MQfzv+eFqyyY9jQH5I1H/8XkkzksCA9FR7RbhfiiAuZr9SAwihK+w9SvwXcEogjmHXaZWd0yv4qKUrtAProA+tOZcNbjZbPhRxz4s0V01nahAcRceHOBjgAXBnuIBAXl16ZA9YCfUU4cXlRfY= Received: by 10.65.212.19 with SMTP id o19mr5185196qbq.1175834808767; Thu, 05 Apr 2007 21:46:48 -0700 (PDT) Received: from ?192.168.11.3? ( [65.30.71.168]) by mx.google.com with ESMTP id 12sm1346957nzn.2007.04.05.21.46.46; Thu, 05 Apr 2007 21:46:47 -0700 (PDT) Message-ID: <4615D0C2.4030801@apache.org> Date: Thu, 05 Apr 2007 23:46:58 -0500 From: Paul Benedict Reply-To: pbenedict@apache.org User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: pbenedict@apache.org CC: Struts Users Mailing List Subject: Re: Help: JSP and Java 5 enum References: <4615CA21.1030400@apache.org> In-Reply-To: <4615CA21.1030400@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Paul Benedict X-Virus-Checked: Checked by ClamAV on apache.org I found the answer. The Apache JSTL implementation automatically coerces the r-value to an enum. So the below example works as wanted. Paul Benedict wrote: > Has anyone ever compared or iterated a Java 5 enum in JSP? I want do > the following: > > > I don't mind comparing ordinals too, but I must be able to do a > comparison. > > Thanks! > Paul > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org