Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 96474 invoked from network); 8 Mar 2006 23:31:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Mar 2006 23:31:31 -0000 Received: (qmail 7566 invoked by uid 500); 8 Mar 2006 23:31:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 7286 invoked by uid 500); 8 Mar 2006 23:31:20 -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 7275 invoked by uid 99); 8 Mar 2006 23:31:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 15:31:20 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.48.218] (HELO web52615.mail.yahoo.com) (206.190.48.218) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Mar 2006 15:31:20 -0800 Received: (qmail 21847 invoked by uid 60001); 8 Mar 2006 23:30:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TqSVgH18BmBdEZNaKirfltod+nPHmhcRmjDt31A3YI+KjnQLzj4CRxg/z9lw3UcxzLADqcncrP5QljV9f1zr4sPMRBQCNkUDU9TDH5+7lOJNQjrsnkMiNZYrJdImMc/kIAkjGzs+BEDamqJW72qPNmYcBODPBzci1+5NBdrDs2w= ; Message-ID: <20060308233058.21845.qmail@web52615.mail.yahoo.com> Received: from [65.246.152.158] by web52615.mail.yahoo.com via HTTP; Wed, 08 Mar 2006 15:30:58 PST Date: Wed, 8 Mar 2006 15:30:58 -0800 (PST) From: Caroline Jen Subject: Re: Display the Counts of a Collection that is in a Form To: Struts Users Mailing List , lionel@portconnection.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for your kind help. <%=ActivityForm.getBusinessCollection().size() %> gives JSP processing error. Somehow, ActivityForm cannot be recognized. The struts tag for retrieving the size does not give runtime error, the web page is displayed. However, does not display anything (it looks like the does not exist.) I know that the 'businessCollection' is not empty because I have used tag to test it before I try to write out the counts in that collection. --Caroline --- Lionel Port wrote: > Two options > > Using your scriptlet example > > <%= ActivityForm.getBusinessCollection().size() %> > > Or there is a struts tag to retrieve size > > property="businessCollection"/> > > > > On 3/9/06, Caroline Jen > wrote: > > > > I am trying to display 'counts' in a Collection. > And > > I use JSP scriptlet to do it: > > > > <%=businessCollection.size()%> > > > > The compiler cannot recognize the Collection > > 'businessCollection'. It is because > > businessCollection is defined in the > > ActivityForm.java. > > > > When I tested whether businessCollection is empty > or > > not, I used: > > > > > property="businessCollection"> > > blah, blah > > > > > > And it was successful. > > > > Then, how do I display the counts of the > Collection in > > this situation? > > > > Thanks in advance. > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > > For additional commands, e-mail: > user-help@struts.apache.org > > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org