[ http://issues.apache.org/jira/browse/BEANUTILS-109?page=all ]

Niall Pemberton updated BEANUTILS-109:
--------------------------------------

    Bugzilla Id:   (was: 30637)
    Component/s: Expression Syntax

> [beanutils] BeanUtils.setProperty fails with mapped properties containing 
> several MAPPED_DELIM2 characters
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-109
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-109
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Expression Syntax
>    Affects Versions: 1.6
>         Environment: Operating System: All
> Platform: All
>            Reporter: Alejandro H. Gil Sanda
>
> If you have some struts property of type HashMap in a form bean, and the key 
> of 
> the hashmap has an "(" or an ")" the method will incorrectly parse the name 
> of 
> the property causing struts to fail.
> <html:text property="myhashmap(some_key_with_)_map_delim_in_it)" />
> Some fix to the problem is to change the following lines:
> BeanUtils.java:375
> - int k = propName.indexOf(PropertyUtils.MAPPED_DELIM2);
> + int k = propName.lastIndexOf(PropertyUtils.MAPPED_DELIM2);
> BeanUtils.java:914
> - int k = propName.indexOf(PropertyUtils.MAPPED_DELIM2);
> + int k = propName.lastIndexOf(PropertyUtils.MAPPED_DELIM2);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to