WebRoot/jsp/reader/readerList.jsp

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" contentType="text/html; charset=GB2312"  pageEncoding="GB2312"%>
<%@page import="com.book.dao.DBHelper"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.book.pojo.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>读者信息</title>
<%
	List list = (List)request.getAttribute("readerList");
	if(list == null){
		Connection conn =null;
		PreparedStatement ps = null;
		ResultSet rs = null;
		list = new ArrayList();
		try{
		 	conn = DBHelper.getConnection();
		 	ps = conn.prepareStatement("select * from book_reader");
		 	rs = ps.executeQuery();
		 	while(rs.next()){
		 		BookReader reader = new BookReader();
		 		reader.setReader_id(rs.getInt(1));
		 		reader.setReader_name(rs.getString(2));
		 		reader.setReader_sex(rs.getString(3));
		 		reader.setEmail(rs.getString(4));
		 		reader.setQq(rs.getString(5));
		 		reader.setReader_phone(rs.getString(6));
		 		reader.setReader_address(rs.getString(7));
		 		list.add(reader);
		 	}
		 	request.setAttribute("readerList",list);
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			DBHelper.close(conn,ps,rs);
		}
	}
 %>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
后面还有 84 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。