<%-- Created by IntelliJ IDEA. User: lenovo Date: 2019/1/11 Time: 11:13 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.Date" %> <%@ page import="core.user.User" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.HashMap" %> <%@ page import="java.util.List" %> <%@ page import="java.util.ArrayList" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> Title <% Map map1=new HashMap(); Map map2=new HashMap<>(); map1.put("姓名","hehcu"); map1.put("学号","201630126050"); map1.put("电话","18711191679"); map1.put("状态","选择"); map2.put("姓名","laoshi"); map2.put("学号","54646546"); map2.put("电话","18711191679"); map2.put("状态","已选"); List> list=new ArrayList<>(); list.add(map1); list.add(map2); pageContext.setAttribute("list",list); User user=(User)session.getAttribute("user"); String type=user.getType(); pageContext.setAttribute("type",type); %>
${"选择学生"} ${"选择老师"}
已选学生
${z.姓名}
${msg.key}:${msg.value}