You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Krista Baker (JIRA)" <be...@incubator.apache.org> on 2005/04/27 22:43:34 UTC

[jira] Closed: (BEEHIVE-502) parameterMap tag doesn't correctly handle a String[] as a map value

     [ http://issues.apache.org/jira/browse/BEEHIVE-502?page=all ]
     
Krista Baker closed BEEHIVE-502:
--------------------------------


Verified that the parameterMap object now accepts hashMaps made out of String, String[] items and outputs them into valid html parameters.

> parameterMap tag doesn't correctly handle a String[] as a map value
> -------------------------------------------------------------------
>
>          Key: BEEHIVE-502
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-502
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Eddie O'Neil
>     Assignee: Krista Baker
>      Fix For: V1

>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira