Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-502

parameterMap tag doesn't correctly handle a String[] as a map value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1m1
    • v1m1
    • NetUI
    • None

    Description

      The NetUI parameterMap tag performa a "toString()" on a Map's value before adding it to a parameter handler via the IUrlParams interface. For example:

      <%
      HashMap map = new HashMap();
      map.put("urlKey", new String[]

      {"foo", "bar"}

      );
      pageContext.setAttribute("map", map);
      %>

      <netui:anchor href="foo.jsp" value="foo">
      <netui:parameterMap map="${pageScope.map}"/>
      </netui:anchor>

      ends up with a parameter like:

      foo.jsp?urlKey=[Ljava.lang.String;@dfb22b

      when it should end up with:

      foo.jsp?urlKey=foo&urlKey=bar

      Attachments

        Activity

          People

            kbaker Krista Baker
            ekoneil Edward O'Neil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: