Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 10658 invoked from network); 11 Sep 2002 02:44:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Sep 2002 02:44:55 -0000 Received: (qmail 5401 invoked by uid 97); 11 Sep 2002 02:45:34 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@jakarta.apache.org Received: (qmail 5307 invoked by uid 97); 11 Sep 2002 02:45:32 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 5295 invoked by uid 98); 11 Sep 2002 02:45:31 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Tue, 10 Sep 2002 19:40:32 -0700 From: Vernon Wu Subject: Re: How to access an element of array without using the iteration tag In-reply-to: <3D7E9875.1060501@gefionsoftware.com> To: Tag Libraries Users List , hans@gefionsoftware.com, martin.cooper@tumbleweed.com, dmkarr@earthlink.ne Reply-to: vernonw@gatewaytech.com Message-id: MIME-version: 1.0 X-Mailer: Opera 6.03 build 1107 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Priority: 3 (Normal) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I almost simultaneously received all your three's reply. Thanks your all. I shall remember that EL only validates inside of the tag space. Good night. 9/10/2002 6:12:21 PM, Hans Bergsten wrote: >Vernon Wu wrote: >> Thanks Hans for your quick response. >> >> In fact, I didn't phrase my question right. The data is a path of an image. The expression doesn't work in the situation. I >> have to use the script as the followings: >> >> <% if(prov.getPhotoPaths() == null) { %> >> > ALIGN=BOTTOM BORDER=0> >> <% } else { %> >> >> <% } %> >> >> doesn't seem to work. > >That's because you're using Java code in scriptlets, not JSTL and the EL >as you asked about. With JSTL and EL, something like this should work: > > > > " > NAME="No Photo Available" ALIGN=BOTTOM BORDER=0> > > > " > NAME="Photo" ALIGN=BOTTOM BORDER=0> > > > >Note the use of for the case when no path is provided; it adds >the context path automatically for you. > >Hans >-- >Hans Bergsten hans@gefionsoftware.com >Gefion Software http://www.gefionsoftware.com >JavaServer Pages http://TheJSPBook.com > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: