Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 92560 invoked from network); 7 May 2006 00:59:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 May 2006 00:59:18 -0000 Received: (qmail 80742 invoked by uid 500); 7 May 2006 00:59:10 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 79739 invoked by uid 500); 7 May 2006 00:59:08 -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 79728 invoked by uid 99); 7 May 2006 00:59:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 May 2006 17:59:08 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ruben_cepeda@hotmail.com designates 65.54.169.33 as permitted sender) Received: from [65.54.169.33] (HELO hotmail.com) (65.54.169.33) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 May 2006 17:59:07 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 6 May 2006 17:58:46 -0700 Message-ID: Received: from 65.54.169.200 by by114fd.bay114.hotmail.msn.com with HTTP; Sun, 07 May 2006 00:58:46 GMT X-Originating-IP: [71.247.243.64] X-Originating-Email: [ruben_cepeda@hotmail.com] X-Sender: ruben_cepeda@hotmail.com In-Reply-To: From: "Ruben Cepeda" To: user@struts.apache.org Subject: RE: Counting ActionErrors from JSP Date: Sun, 07 May 2006 00:58:46 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 07 May 2006 00:58:46.0907 (UTC) FILETIME=[65290CB0:01C67171] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Philihp, If you want to get accesses to the ActionErrors class "size()" method from a JSP thru lets say JSTL. You will can extend the ActionErrors and makes the method "getSize()". The access the ActionErrors class in the page my its name (see http://struts.apache.org/struts-doc-1.2.x/api/index.html for name details). Anyways I don't know it this is a possible solution to you. So you might try the following scriptlet. <% int count = ((ActionErrors) pageContext.findAttribute(org.apache.struts.Globals.ERROR_KEY)).size(); %> Let the list know if any of this helped. ************************************* Ruben Cepeda ruben_cepeda@hotmail.com ************************************* ----Original Message Follows---- From: "Philihp Busby" Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Counting ActionErrors from JSP Date: Fri, 5 May 2006 20:45:24 -0400 Hi Struts List, Is there a way through Struts and JSTL Tags to get a "count" of the number of ActionMessages or ActionErrors? I would like my to display messages in a numbered bulleted list when there are more than one, but just display the one outside of a list when there is only one. Thanks, Philihp --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org