Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2993

Unable to use right parenthesis in map lookup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.1.1
    • None
    • Tag Libraries
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lindyboi Will Budreau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: