Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-2

[configuration] [1.2RC1] ConfigurationDynaBean may implement java.util.Map

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      37486

      Description

      ConfigurationDynaBean says
      "It also implements a Map interface so that it can be used in JSP 2.0 Expression
      Language expressions."

      Map interface is not implemented (in 1.2RC1) and ConfigurationDynaBean cannot be
      used from EL :
      <c:out value="${configuration['un.test']}"/> :
      Unable to find a value for "un.test" in object of class
      "org.apache.commons.configuration.beanutils.ConfigurationDynaBean" using
      operator "[]" (null)

      Simply implementing Map.get(Object) may solve the problem.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ndeloof nicolas de loof
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: