您的位置:首页 > Web前端 > JavaScript

用getAttribute获取控制层获取的数据,显示在jsp页面

2015-10-31 16:40 609 查看
<body>
<form action="/t31/servlet/StudentSer" method="post">
关键字<input type="text" name="sname"/>
<input type="submit" value="提交"/>
<input type="hidden" name="status" value="queryStudent"/>
</form>
<%
ArrayList<Student> students=(ArrayList)request.getAttribute("students");
if(students!=null){
out.print(students.size());
}
%>
</body>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: