<%@ page import="com.xbw.repository.StudentRepository" %> <%@ page import="com.xbw.entity.Student" %> <%@ page import="java.util.List" %> <%@ page import="java.util.ArrayList" %><%-- Created by IntelliJ IDEA. User: x'b'w Date: 2021/5/23 Time: 11:28 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 主页面 <%-- 查询OK--%>
查询学号为的同学的名字:
<%-- 修改OK--%>
修改学号为的同学的名字为:
<%-- 增加OK--%>
增加学号为的同学的名字为:
<%-- 删除OK--%>
删除学号为的同学的名字为:
<%-- 查询所有-------------------------------------------------------------------------------------------------------%>
<%-- 查询所有信息:${list}--%> <%-- --%> <%-- --%> <%-- --%> <%-- --%> <%-- --%> <%-- --%> <%-- --%> <%-- --%>
<%-- 查询一条信息:${resnum}--%>
编号姓名
编号姓名
查询一条信息: ${resnum} 查无一条信息:null.
${resnum.num} ${resnum.name}

全部信息: ${list} 查无全部信息:null.
${student1.num} ${student1.name}
<%-- <%--%> <%-- String sel =(String) request.getAttribute("resnum");--%> <%-- if (sel != null){--%> <%-- %>--%> <%-- <%=--%> <%-- "当前查询的语句为"+sel--%> <%-- %>--%> <%-- <%--%> <%-- }else {--%> <%-- %>--%> <%-- <%=--%> <%-- "当前查询不到语句:null"--%> <%-- %>--%>