tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: beanutils.BeanComparator
Date Thu, 18 Dec 2003 19:09:36 GMT

Howdy,
This is the wrong place as Tim said, and you need either a custom comparator that handles
two bean properties or a third property of the bean that combined the first and last names.
 But don't continue this thread here please...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Tim Funk [mailto:funkman@joedog.org]
>Sent: Thursday, December 18, 2003 12:11 PM
>To: Tomcat Users List
>Subject: Re: beanutils.BeanComparator
>
>Try asking the commons-user list. This is the tomcat list.
>
>-Tim
>
>Søren Blidorf wrote:
>> Hi.
>>
>> I am using the org.apache.commons.beanutils.BeanComparator;
>>
>> I am doing the following:
>>
>> Collections.sort(people, new BeanComparator("lastname"));
>>
>> How can I sort by lastname and then by firstname?
>>
>> If I do this:
>>
>> Collections.sort(people, new BeanComparator("lastname"));
>> Collections.sort(people, new BeanComparator("firstname"));
>>
>> It's only sorted by firstname.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message