当前位置: 代码迷 >> JavaScript >> jsp数据来显
  详细解决方案

jsp数据来显

热度:222   发布时间:2013-09-18 14:17:40.0
jsp数据回显
<s:select name="pagemenu.pid" list="parentmenus" listKey="id" listValue="name" headerKey="0" headerValue="---"/>


加载pagemenu 可以回显   name法

public LinkedHashMap<String, String> getOperationMap(){
LinkedHashMap<String, String> operations=new LinkedHashMap<String, String>();
if(operationable!=null&&operationable.length()>0){
for(String operationid:getOperations()){
operations.put(operationid, EaModelContent.operations.get(operationid));
}
}
return operations;
}

list要是Map类型


或者value属性   List list = new ArrayList();
  相关解决方案