Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 39353 invoked from network); 15 Aug 2000 18:02:56 -0000 Received: from lukla.sun.com (192.18.98.31) by locus.apache.org with SMTP; 15 Aug 2000 18:02:56 -0000 Received: from engmail3.Eng.Sun.COM ([129.144.170.5]) by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA19177 for ; Tue, 15 Aug 2000 12:02:54 -0600 (MDT) Received: from florence.eng.sun.com (florence.Eng.Sun.COM [129.144.251.146]) by engmail3.Eng.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id LAA14064 for ; Tue, 15 Aug 2000 11:02:51 -0700 (PDT) Received: from eng.sun.com (localhost [127.0.0.1]) by florence.eng.sun.com (8.9.3+Sun/8.9.1) with ESMTP id LAA29471 for ; Tue, 15 Aug 2000 11:02:51 -0700 (PDT) Sender: craigmcc@florence.Eng.Sun.COM Message-ID: <399985CB.8450D7A7@eng.sun.com> Date: Tue, 15 Aug 2000 11:02:51 -0700 From: Craig McClanahan Organization: Sun Microsystems, Inc. X-Mailer: Mozilla 4.51 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Using expressions in tag attributes References: <399932AC.3090702@enetgroup.co.uk> <399972A5.D929CBBF@eng.sun.com> <39997830.D7F3450@enetgroup.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Rachel Greenham wrote: > Craig McClanahan wrote: > > > > Rachel Greenham wrote: > > > > > Should I be expecting this sort of thing to work? > > > > > > <% > > > String name="wibble"; > > > %> > > > > > > > > > ie: using an expression in an attribute to a taglib tag. It doesn't > > > work, and I think I can see why, but as it does on HTML it would be > > > intuitive if it did. > > > > > > > This should work if you declare, in your tag library descriptor file, that > > this attribute takes runtime expression values. You would need something > > like this: > > > > > > name > > true > > true > > > > > > Craig > > Yeah, I noticed that myself a little while after posting. :-} However, see > my other postings, there do seem to be problems with this, in that things > don't work properly if the expression you're passing contains any string > constants (ie: quoted values) > > ie: to extend my above example: > > "/> will fail. > Try single quotes for one set and double quotes for the other: > > -- > Rachel Craig