JSP的c標籤遍歷Map數據

JSP的C標籤遍歷Map數據 Map能夠實現較爲豐富的數據封裝。 第一種: 控制器傳遞到頁面的map格式以下:web Map<String, User> dataMap = new HashMap<String, User>(); dataMap.put(.....);//封裝數據過程 model.addAttribute("dataMap", dataMap); User能夠爲自定義對象jsp
相關文章
相關標籤/搜索