• 大小: 629.92 KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-11-14
  • 语言: Java
  • 标签: jspservlet  

资源简介

jsp基于servlet 图书馆管理系统 内附 数据库 是 mysql的 还有使用说明书

资源截图

代码片段和文件信息

package sjservlets;

/** A Java Bean use to keep the user borrow record
 *  


 *  © 2002 Song Jing; may be freely used or adapted.
 */

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class BorrowRec {
private int borrowRecNumber = 0;
private String itemCallNumber = ““;
private String staffIDBorrow = ““;
private String staffIDReturn = ““;
private String borrowerID = ““;
private String borrowerEmail =““;
private String borrowDate = ““;
private String dueDate = ““;
private String returnDate =““;
private String borrowStatus = ““;

public BorrowRec(){
}

public BorrowRec(int borrowRecNumber String itemCallNumber String staffIDBorrow String staffIDReturn String borrowerID 
String borrowerEmail String borrowDate String dueDate String returnDate String borrowStatus) {
setBorrowRecNumber(borrowRecNumber);
setItemCallNumber(itemCallNumber);
setStaffIDBorrow(staffIDBorrow);
setStaffIDReturn(staffIDReturn);
setBorrowerID(borrowerID);
setBorrowerEmail(borrowerEmail);
setBorrowDate(borrowDate);
setDueDate(dueDate);
setReturnDate(returnDate);
setBorrowStatus(borrowStatus);
}

public void setPropertyFromRequestParameter(HttpServletRequest request String itemCallNumber){
//setBorrowRecNumber(Integer.parseInt(request.getParameter(“borrowRecNumber“)));
setItemCallNumber(itemCallNumber);
setStaffIDBorrow(request.getParameter(“staffIDBorrow“));
setStaffIDReturn(request.getParameter(“staffIDReturn“));
setBorrowerID(request.getParameter(“borrowerID“));
setBorrowerEmail(request.getParameter(“borrowerEmail“));
setBorrowDate(request.getParameter(“borrowDate“)); 
setDueDate(request.getParameter(“dueDate“));
setReturnDate(request.getParameter(“returnDate“));
setBorrowStatus(request.getParameter(“borrowStatus“));
}

public void resetVariable() {
setBorrowRecNumber(0);
setItemCallNumber(““);
setStaffIDBorrow(““);
setStaffIDReturn(““);
setBorrowerID(““);
setBorrowerEmail(““);
setBorrowDate(““);
setDueDate(““);
setReturnDate(““);
setBorrowStatus(““);
   }

public void setBorrowRecNumber(int borrowRecNumber) {
this.borrowRecNumber = borrowRecNumber;
}

public void setItemCallNumber(String itemCallNumber) {
this.itemCallNumber = itemCallNumber;
}
public void setStaffIDBorrow(String staffIDBorrow) {
this.staffIDBorrow = staffIDBorrow;
}
public void setStaffIDReturn(String staffIDReturn) {
this.staffIDReturn = staffIDReturn;
}
public void setBorrowerID(String borrowerID) {
this.borrowerID = borrowerID;
}
public void setBorrowerEmail(String borrowerEmail) {
this.borrowerEmail = borrowerEmail;
}
public void setBorrowDate(String borrowDate) {
this.borrowDate = borrowDate;
}
public void setDueDate(String dueDate) {
this.dueDate = dueDate;
}
public void setReturnDate(String returnDate) {
this.returnDate = return


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2120  2002-01-27 22:48  chap19\JDBC_Driver\JavaLibrary\about\contact.jsp

     文件       5705  2002-01-27 22:52  chap19\JDBC_Driver\JavaLibrary\about\songjing.jsp

    ..A..H.         9  2006-08-24 08:48  chap19\JDBC_Driver\JavaLibrary\about\_desktop.ini

     文件      15643  2002-01-28 16:01  chap19\JDBC_Driver\JavaLibrary\admin\borrow_list.jsp

     文件      23774  2002-01-28 16:04  chap19\JDBC_Driver\JavaLibrary\admin\libraryitem_list.jsp

     文件      11734  2002-01-28 17:36  chap19\JDBC_Driver\JavaLibrary\admin\penalty_list.jsp

     文件      16332  2002-01-28 17:37  chap19\JDBC_Driver\JavaLibrary\admin\reserve_list.jsp

     文件      14947  2002-01-28 23:31  chap19\JDBC_Driver\JavaLibrary\admin\user_list.jsp

    ..A..H.         9  2006-08-24 08:48  chap19\JDBC_Driver\JavaLibrary\admin\_desktop.ini

     文件        742  2002-01-28 17:40  chap19\JDBC_Driver\JavaLibrary\common\common.jsp

     文件        751  2002-01-17 05:05  chap19\JDBC_Driver\JavaLibrary\common\dbconnect.jsp

     文件         73  2002-01-28 17:40  chap19\JDBC_Driver\JavaLibrary\common\dbdisconnect.jsp

     文件       1938  2002-10-01 23:30  chap19\JDBC_Driver\JavaLibrary\common\dbprocess_result.jsp

     文件        573  2002-01-28 11:34  chap19\JDBC_Driver\JavaLibrary\common\footer.jsp

     文件        331  2002-01-28 17:41  chap19\JDBC_Driver\JavaLibrary\common\header_admin.jsp

     文件        330  2002-01-28 17:41  chap19\JDBC_Driver\JavaLibrary\common\header_borrower.jsp

     文件        331  2002-01-28 17:41  chap19\JDBC_Driver\JavaLibrary\common\header_librarian.jsp

     文件        328  2002-01-28 17:42  chap19\JDBC_Driver\JavaLibrary\common\header_normal.jsp

     文件        525  2002-01-28 17:42  chap19\JDBC_Driver\JavaLibrary\common\header_select.jsp

     文件      28048  2002-01-28 17:43  chap19\JDBC_Driver\JavaLibrary\common\help.jsp

     文件       3621  2002-01-27 13:47  chap19\JDBC_Driver\JavaLibrary\common\navi.jsp

     文件       1241  2002-01-28 17:43  chap19\JDBC_Driver\JavaLibrary\common\page_count.jsp

     文件        106  2002-01-27 17:59  chap19\JDBC_Driver\JavaLibrary\common\printview.jsp

     文件        962  2002-01-28 18:12  chap19\JDBC_Driver\JavaLibrary\common\wait.jsp

    ..A..H.         9  2006-08-24 08:48  chap19\JDBC_Driver\JavaLibrary\common\_desktop.ini

    ..A..H.         9  2006-08-24 08:48  chap19\JDBC_Driver\JavaLibrary\common\_notes\_desktop.ini

     文件       2034  2001-08-29 13:34  chap19\JDBC_Driver\JavaLibrary\default.css

     文件        701  2001-12-27 20:10  chap19\JDBC_Driver\JavaLibrary\error\401.html

     文件        411  2002-01-18 21:19  chap19\JDBC_Driver\JavaLibrary\error\errorpage.jsp

    ..A..H.         9  2006-08-24 08:48  chap19\JDBC_Driver\JavaLibrary\error\_desktop.ini

............此处省略180个文件信息

评论

共有 条评论