Dear group,

I am trying to migrate my application from org.apache.struts.utils.Digester
and org.apache.struts.BeanUtils to the new versions in the commons packages
(BeanUtils 1.3). During my upgrades I found one important (at least for me)
difference between the two versions:

I have properties in my struts-config.xml which are not meant to be
populated but are only used for digester rules. This properties worked fine
in the old version  but do present a problem now.

org.apache.struts.utils.BeanUtils.populate(Object bean, Map properties)
says
     if (setter == null) {
          /*
          if (debug >= 1)
          System.out.println("    No setter method, skipping");
          */
          continue;
     }

org.apache.commons.beanutils.BeanUtils throws a NoSuchMethodException
instead. Does anybody know a reason for this? Or a nice way to work around
it (I know, the not so nice way would be a dummy method in the bean)?

Regards,
Georg Datterl


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

Reply via email to