I am trying to implement dropdown using MAP data and getting error
Here is the code, Can you please help? is it possible to use value & key?
Part of
JSP
<%@ page import="java.util.Collections" %>
<%@ page import="java.util.HashMap" %>
<html:html>
<%
HashMap params = new HashMap();
params.put("param1", "param1Value");
params.put("param2","param2Value");
pageContext.setAttribute("linkParams", params);
%>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<html:form method="get" action="listType" >
<html:options collection="linkParams" property="params" value="value" label="key"/>
</html:select>
|
</html:form>
</html:html>