WiQuery results from the merge of two projects, WickeXt and jQuery4Wicket
http://wicketstuff.org聽聽聽聽聽聽聽 Map m = new HashMap();
聽聽聽聽聽聽聽 m.put("name","yourname");
聽聽聽聽聽聽聽 m.put("pass","yourpass");
聽聽聽聽聽聽聽 request.setAttribute("map",m);
<logic:iterate id="str" name="map" scope="request">
聽聽聽聽聽 <h2><bean:write name="str" property="key"/></h2>
聽聽聽聽聽 <h2><bean:write name="str" property="value"/></h2>
聽聽聽 </logic:iterate>
聽聽 <%
聽聽聽聽聽聽聽 /**
聽聽聽聽聽聽聽聽聽 鍦?/span>Map涓繚瀛樺涓?/span>Collection闆嗗悎,璇ュ浣曡繘琛屼簡杈撳嚭?
聽聽聽聽聽聽聽 */
聽聽聽聽聽聽聽 List all = null;
聽聽聽聽聽聽聽 Map m = new HashMap();
聽聽聽聽聽聽聽
聽聽聽聽聽聽聽 all = new ArrayList();
聽聽聽聽聽聽聽 all.add("msdn");
聽聽聽聽聽聽聽 all.add("url");
聽聽聽聽聽聽聽 m.put("name",all);
聽聽聽聽聽聽聽
聽聽聽聽聽聽聽 all = new ArrayList();
聽聽聽聽聽聽聽 all.add("mole");
聽聽聽聽聽聽聽 all.add("msistri");
聽聽聽聽聽聽聽 m.put("info",all);
聽聽聽聽聽聽聽 //鍦ㄤ竴涓?/span>Map涓繚瀛樹簡澶氫釜闆嗗悎,姣忎釜闆嗗悎鍙堝寘鍚簡澶氫釜鍐呭
聽聽聽聽聽聽聽 request.setAttribute("list",m);
聽聽聽 %>
聽聽聽 <logic:iterate id="src" name="list" scope="request" >
聽聽聽聽聽 <h2><bean:write name="src" property="key"/></h2>
聽聽聽聽聽聽聽 <logic:iterate id="ins" name="src" scope="page" property="value">
聽聽聽聽聽聽聽聽聽聽 <bean:write name="ins"/>
聽聽聽聽聽聽聽 </logic:iterate>
聽聽聽 </logic:iterate>
http://m.tkk7.com/ftqiuqiu/articles/205631.html