Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 33998 invoked from network); 8 Sep 2004 17:23:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Sep 2004 17:23:43 -0000 Received: (qmail 21216 invoked by uid 500); 8 Sep 2004 17:23:24 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 21187 invoked by uid 500); 8 Sep 2004 17:23:23 -0000 Mailing-List: contact user-help@struts.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 user@struts.apache.org Received: (qmail 21174 invoked by uid 99); 8 Sep 2004 17:23:23 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.224.249 as permitted sender) Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Sep 2004 10:23:22 -0700 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C56AB-0007aq-00 for ; Wed, 08 Sep 2004 19:23:19 +0200 Received: from 209.101.199.82 ([209.101.199.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2004 19:23:19 +0200 Received: from billsigg by 209.101.199.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2004 19:23:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Bill Siggelkow Subject: Re: [OT] How to sort with ? Date: Wed, 08 Sep 2004 13:23:18 -0400 Lines: 13 Message-ID: References: <413F3877.5000602@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 209.101.199.82 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en In-Reply-To: <413F3877.5000602@aol.com> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Do it in the business layer that fetches the collection -- or in the database -- or store the data in a sorted collection (like SortedTreeMap or some similar animal). Craig Dickson wrote: > Hi, > > Is there an easy way to have the JSTL forEach tag sort the collection of > items before looping through them? Currently I have a scriptlet doing it > before the loop tag, but this is pretty ugly. > > Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org