81,122
社区成员




<%
List<KeyValuePair> cityList = request.getAttribute("city_list") != null ? List<KeyValuePair> request.getAttribute("city_list") : new ArrayList<KeyValuePair>();
String cityCode = request.getAttribute("city_code") != null ? (String)request.getAttribute("city_code") : "";
%>
<select .....>
<%for(KeyValuePair kvp : cityList) {%>
<%if(cityCode.equals(kvp)) {%>
<option value="<%=kvp.value%>" selected ><%=kvp.key%></option>
<%} else {%>
<option value="<%=kvp.value%>" ><%=kvp.key%></option>
<%}%>
</select>