From struts-user-return-22035-qmlist-jakarta-archive-struts-user=jakarta.apache.org@jakarta.apache.org Thu Nov 29 20:33:03 2001 Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 35629 invoked from network); 29 Nov 2001 20:33:03 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 29 Nov 2001 20:33:03 -0000 Received: (qmail 28354 invoked by uid 97); 29 Nov 2001 20:32:32 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 28344 invoked by uid 97); 29 Nov 2001 20:32:31 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 14457 invoked from network); 28 Nov 2001 20:43:12 -0000 Message-ID: <7500980.1006980209611.JavaMail.root@project1.usiatl.com> From: Joey Gibson To: struts-user@jakarta.apache.org Subject: Re: check for null collection In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N If the collection is truly null, then will be false so you won't get into the tag body. To see if the collection is just an empty collection: Inside your you can use a combo of tags from the bean and logic taglibs: No records. record(s) And you don't have to do the since most of the tags will be able to find the collection in whichever scope it is in. In my sample program that I wrote to test this information, I created a List and shoved it into the request. I never mentioned which scope it is in, though you can specify. Joey -- Sent via jApache.org -- To unsubscribe, e-mail: For additional commands, e-mail: