Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 33618 invoked from network); 8 Aug 2007 18:18:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 18:18:11 -0000 Received: (qmail 2513 invoked by uid 500); 8 Aug 2007 18:18:01 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 2477 invoked by uid 500); 8 Aug 2007 18:18:01 -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 2466 invoked by uid 99); 8 Aug 2007 18:18:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 11:18:01 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jiangja@mail.nih.gov designates 128.231.90.117 as permitted sender) Received: from [128.231.90.117] (HELO NIHCESSMTP3.hub.nih.gov) (128.231.90.117) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 18:17:56 +0000 Received: from nihcesmlbx10.nih.gov ([156.40.71.210]) by NIHCESSMTP3.hub.nih.gov with Microsoft SMTPSVC(6.0.3790.1830); Wed, 8 Aug 2007 14:17:35 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: S2- How to use Constants in s:select tag Date: Wed, 8 Aug 2007 14:17:34 -0400 Message-ID: In-Reply-To: <46B9FDC5.6060002@Newfield.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: S2- How to use Constants in s:select tag Thread-Index: AcfZ4fMuTIwFzMiuREWaRDT43ACWAgAAcxXA From: "Jiang, Jane (NIH/NCI) [C]" To: "Struts Users Mailing List" X-OriginalArrivalTime: 08 Aug 2007 18:17:35.0362 (UTC) FILETIME=[65020620:01C7D9E8] X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am having trouble using my constants class in my jsp. I defined a service for lookup list of values for my select box. This in my jsp works fine But when I tried to change the list=3D"%{lookupService.getList('type')}" to list=3D"%{lookupService.getList(MyConstants.Type)}" I got this error: The requested list key '{%lookupService.getList(MyConstants.Type)}' could not be resolved as a collection/array/map/enumberation/iterator type. I did import the constants class in the jsp. What is the right syntax for this? Many thanks for your help, Jane --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org