You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Will Budreau (JIRA)" <ji...@apache.org> on 2007/01/05 20:18:16 UTC
[jira] Created: (STR-2993) Unable to use right parenthesis in map
lookup
Unable to use right parenthesis in map lookup
---------------------------------------------
Key: STR-2993
URL: https://issues.apache.org/struts/browse/STR-2993
Project: Struts 1
Issue Type: Bug
Components: Taglibs
Affects Versions: 1.1.1
Reporter: Will Budreau
When using BeanUtils lookup methods with a property like name="object" property="field(key)" it is interpreted as a mapped property, and looks up object.getField("key")
However, if I try to use a key that includes a right parenthesis ")" in the key, I have a problem, since the PropertyUtils terminates the mapped property early.
<bean:write name="form" property="field(key)MoreKey) "/> does a get on object.getField("key") instead of object.getField("key)MoreKey") and the trailing characters "MoreKey" are silently stripped.
Could not find any documentation about whether it Is it possible to escape the parenthesis or limitations on a well-formed mapped property.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (STR-2993) Unable to use right parenthesis in map
lookup
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/STR-2993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved STR-2993.
----------------------------------
Resolution: Not A Problem
This is a Commons BeanUtils issue - so I'm closing it - see the following issue BeanUtils issue:
http://issues.apache.org/jira/browse/BEANUTILS-109
Currently with the latest release of BeanUtils theres nothing you can do to escape and use these type of values - BeanUtils has been modified to make it easier for people to implement their own expression syntax, but whether it will ever see the light of day in a BeanUtils release (BeanUtils doesn't get much attention) is another question
http://svn.apache.org/viewvc?view=rev&revision=473888
Its available in the nightly build, and you would need to implement your own Resolver
http://people.apache.org/builds/jakarta-commons/nightly/commons-beanutils/
> Unable to use right parenthesis in map lookup
> ---------------------------------------------
>
> Key: STR-2993
> URL: https://issues.apache.org/struts/browse/STR-2993
> Project: Struts 1
> Issue Type: Bug
> Components: Taglibs
> Affects Versions: 1.1.1
> Reporter: Will Budreau
>
> When using BeanUtils lookup methods with a property like name="object" property="field(key)" it is interpreted as a mapped property, and looks up object.getField("key")
>
> However, if I try to use a key that includes a right parenthesis ")" in the key, I have a problem, since the PropertyUtils terminates the mapped property early.
> <bean:write name="form" property="field(key)MoreKey) "/> does a get on object.getField("key") instead of object.getField("key)MoreKey") and the trailing characters "MoreKey" are silently stripped.
>
> Could not find any documentation about whether it Is it possible to escape the parenthesis or limitations on a well-formed mapped property.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira