struts迭代map

<logic:iterate id="elementValue" indexId="idx" name="zzMap">   
                <logic:equal name="elementValue" property="key" value="<%=type %>">                      
                    <bean:write name="elementValue" property="value"/>添加   
                </logic:equal>        
            </logic:iterate>

zzMap为后台的map名 <%=type%>是要比较的key中的值

你可能感兴趣的:(struts)