Please, I want find out if the value of each of the
matching properties in two beans are the same.

BACKGROUND
==========  
I have two JAVABEANS A AND B. They both have name and
sex properties amongst others.  I want to find out if
A.name == B.name and A.sex == B.sex.
Is there any method in Struts that is designed to do
this type of comparison? i.e. 
int objName.compareJavaBeans(javaBean1, javaBean2)

Presently, I am doing this:
String beanBk = customerBeanBk.getCustomerNo()+   
customerBeanBk.getFirstName() +
customerBeanBk.getLastName();
...

String beanDbCp = customerBeanDbCp.getCustomerNo() +
customerBeanDbCp.getFirstName() +
customerBeanDbCp.getLastName();
...             
if (beanBk.equals(beanDbCp)){   .....   }       



Thank you




        
        
                
___________________________________________________________ALL-NEW Yahoo! Messenger - 
all new features - even more fun!  http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to