commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-162) PropertyUtils.getNestedProperty() doesn't allow getXxxx on Map-Instances any longer
Date Fri, 27 Jul 2007 12:00:21 GMT

     [ https://issues.apache.org/jira/browse/BEANUTILS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton updated BEANUTILS-162:
--------------------------------------

        Fix Version/s: 1.8.0
    Affects Version/s: 1.7.0
              Summary: PropertyUtils.getNestedProperty() doesn't allow getXxxx on Map-Instances
any longer  (was: [beanutils] PropertyUtils.getNestedProperty() doesn't allow getXxxx on Map-Instances
any longer)

> PropertyUtils.getNestedProperty() doesn't allow getXxxx on Map-Instances any longer
> -----------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-162
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-162
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Thomas Sahling
>             Fix For: 1.8.0
>
>         Attachments: PropertyUtilsSimpleMaps.txt
>
>
> Hi there!
> For a long time we use Struts 1.0 and <bean:write ...> on objects derivated 
> from Map.
> Back then <bean:write name="obj1" property="obj2.obj3"> did a obj1.getObj2
> ().getObj3(), even when obj2 was an object derivated from Map.
> Since Struts 1.1 the bean:write above does not any longer access "getObj3()". 
> Instead it does (in PropertyUtils.getNestedProperty() ) "if (bean instanceof 
> Map) { bean = ((Map) bean).get(name); }" - in my example: obj1.getObj2().get
> ("obj3").
> This causes a massive incompatibility with JSP pages generated under Struts 
> 1.0. We have several projects with this problem if we would upgrade them to 
> Struts 1.1 (which would take some time cause it means redesign of all classes 
> that are derivated from Map and accessed via <bean:write> and other tags).
> I hope there can be an alternative solution provided by Struts!
> Thanks for the time,
> Thomas Sahling

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message