Shrihas, I suspect you mis-understood the problem. I do have a public Object getXXX(String key) and the matching setter for mapped property access, but I also needed, as David elegatly put it, a scalar accessor/mutator for the entire map collection.
-----Original Message----- From: Shah, Shrihas (OFT) [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 10:40 AM To: Jakarta Commons Users List Subject: RE: [BeanUtils] Mapped properties, this maybe a bug? Hi Anthony: You need Public Map getXXX(String key) method signature. Also you will need Public void setXXX(String key, String value) method Similarly you need to change your jsp too. Where you will pass in the key. Hopefully it will solve the problem. Shrihas Shah NYS Office for Technology [EMAIL PROTECTED] Phone (518) 408-2382 Fax (518) 473-3389 (US Postal Service Regular Mail Address) State Capitol ESP, PO Box 2062 Albany, NY 12220-0062 (Parcel Post/Overnight and Interagency Mail Address) Empire State Plaza Swan St., Core 4, 1st Floor Albany, NY 12223 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 10:40 AM To: [EMAIL PROTECTED] Subject: [BeanUtils] Mapped properties, this maybe a bug? Hi Folks, Before I post I bug report I want to see the problem I face is really a bug. I have a struts application that uses a Mapped (Map) property for one of the form bean's property. If in the form bean I provide : public Object getXXX(String key) public void setXXX(String, key, Object value) mapped bean methods all works as it should. Both setting and getting values work as expected when accessing the property e.g myform.XXX(key1) or setting it. If I add a the following method: public Map getXXX() then my setter methods no longer work. After cranking up the Log4J error level I see that beanutils thinks that there are no setter messages and that the property is read-only. To work around this issue I had to rename my getXXX() method to something else to until I get this problem sorted out. So why does this not work as expected? Are my expectations wrong? Thanks Anthony --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
