String codeTableName = request.getParameter("codeTableName");
CodeTableManager manager = new CodeTableManager();
//get all common codes
CommonCode[] codes = manager.getCodeTable(codeTableName).getCommonCodes();
Map<String,Object> result=new TreeMap<String,Object>();
Collections.sort(Arrays.asList(codes));
int i = 0 ;
for(CommonCode cc :codes){
result.put("cc" + i, cc.getCode());
i++;
}
ObjectMapper objectMapper=new ObjectMapper();
String out = objectMapper.writeValueAsString(result);
String jsonCallBack = request.getParameter("callbackparam");
response.setContentType("text/xml;charset=utf-8");
response.getWriter().print(jsonCallBack + "("+out+")");
return mapping.findForward("");
tree3170
- 粉丝: 9
- 资源: 6
最新资源
- 适用于 Java 的 Chef 食谱.zip
- Simulink仿真快速入门与实践基础教程
- js-leetcode题解之179-largest-number.js
- js-leetcode题解之174-dungeon-game.js
- Matlab工具箱使用与实践基础教程
- js-leetcode题解之173-binary-search-tree-iterator.js
- js-leetcode题解之172-factorial-trailing-zeroes.js
- js-leetcode题解之171-excel-sheet-column-number.js
- 安卓开发从入门到精通基础教程
- js-leetcode题解之170-two-sum-iii-data-structure-design.js
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈