Subject: Re: struts nightly 20020810 bug? From: Torgeir Veimo <[EMAIL PROTECTED]> === Craig R. McClanahan wrote: > >>I have a jsp page that references a bean, resource, which has a parent >>bean of the same type, accessible by a getParent() method. Both these >>has String getProperty(String key) methods. >> >>Using this in struts 1.1beta1, but with an old commons-beanutils.jar >>file has worked great, but now we resynced with the latest nightly. >> >> >>This jsp code works, printing out the path of the parent to resource; >> >><bean:write name="resource" property="parent.path" filter="false" /> >> >> >>This jsp code doesn't, it writes out the title property of the resoure >>itself, not the parent. >> >><bean:write name="resource" property="parent.property(title)" >>filter="false" /> >> >> > > This will only work if "property" is a mapped property. What is the > method signatures of the getter and setter for "property"?
I also thought this, since the previous version of beanutils was modified by us in different ways. resource has this method public String getProperty(String valueName) { if (properties == null) return null; return (String)properties.get(valueName); } it also has this method public Map getProperties() { Map result = null; if (properties != null){ result = Collections.unmodifiableMap(properties); } return result; } But the strange thing is that using resource.properties(title) gives the same result. -- -Torgeir -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>