You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org> on 2005/04/07 21:49:16 UTC
[jira] Created: (BEEHIVE-502) parameterMap tag doesn't correctly handle a String[] as a map value
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
Assigned to: Eddie O'Neil
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Resolved: (BEEHIVE-502) parameterMap tag doesn't correctly handle a String[] as a map value
Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-502?page=history ]
Eddie O'Neil resolved BEEHIVE-502:
----------------------------------
Assign To: Alejandro Ramirez (was: Eddie O'Neil)
Resolution: Fixed
Fix Version: V1
This is fixed with SVN 160494 with a BVT added in SVN 160581. The <parameterMap> tag now handles a Map<String, String[]> and Map<String, List> correctly.
> 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: Alejandro Ramirez
> 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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Closed: (BEEHIVE-502) parameterMap tag doesn't correctly handle a String[] as a map value
Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
[ 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
[jira] Assigned: (BEEHIVE-502) parameterMap tag doesn't correctly handle a String[] as a map value
Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-502?page=all ]
Alejandro Ramirez reassigned BEEHIVE-502:
-----------------------------------------
Assign To: Krista Baker (was: Alejandro Ramirez)
Please verify
> 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