Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2342

Class that inherite from HashMap couldn't use in value stack

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.9
    • None
    • None

    Description

      In jsp the tag <s:property value="map.value"/> doesn't evalutes correct on action:
      class SomeAction {
      Map map = new HashMap() {
      public String getValue()

      { return "failed"; }

      };
      Map getMap()

      { return map; }
      public String execute() { return "success"; }
      }

      But on the following action it evalutes currect:
      class SomeAction {
      Object map = new Object() {
      public String getValue() { return "success"; }
      };
      Object getMap() { return map; }

      public String execute()

      { return "success"; }

      }

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            vladimir.balandin Vladimir A. Balandin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: