Use useEn=(Use)session.getAttribute("Useen"); int useID=useEn.getId();//获取用户的ID System.out.println("刘瑞光如何 获取用户的ID----"+useID);