commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Kishore <mohankish...@yahoo.com>
Subject Re: [beanutils] Uppercased PropertiyDescriptor
Date Fri, 11 Apr 2003 15:12:06 GMT
I guess you are using the SetPropertyRule. If the XML elements are not in sync
with the bean property names, I guess you should you should use the
CallMethodRule instead...

--- Sandra Mema <threedimme@yahoo.de> wrote:
>  
>  
>  Working with Digester trying to process such a XML
>  file:
>  <Order>
>          <BestBid>0</BestBid>
>          <Fragile>0</Fragile>
>          <ADR_UN_ID>UN</ADR_UN_ID>
>          <ADR_Class>4</ADR_Class>
>          <ADRUnNumber>3164</ADRUnNumber>
>  </Order>
>  
>  we are not able to populate the bean for the fields
>  BestBid and Fragile. The reason is that in the
>  PropertyUtils.class form BeanUtils the method
>  getPropertyDescriptor(... , ...)  will get the
>  property descriptor from java.beans.BeanInfo as they
>  are read for it, as follow:
>  
>      setBestBid -------> bestBid
>  
>  without considering the uppercasing variant. I have
>  patch the method for my porposes so it consider the
>  diferent variants like :  <aDRESS , <Adress
>  
>  Should I report it as a bug or it is actually my XML
>  file not in accordance with the standard?
>  
>  Thanks,
>  
>  S.
>   
>  
>  
>  
>  
>  
> 
> __________________________________________________________________
> 
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> Bis zu 100 MB Speicher bei http://premiummail.yahoo.de
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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


Mime
View raw message