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