velocity页面取得map中指定键的值

 

 java后台代码:Map<String, Integer> map = new HashMap<String, Integer>();
  map.put("qyjj", 94);request.setAttribute("singleBoards",map);

 页面:${singleBoards.get('qyjj')}

你可能感兴趣的:(java,velocity,Integer)