资源简介

采用JSP+JavaBean+Servlet模式完成的网上书店设计,数据库使用了MySQL,包括设计报告和源代码

资源截图

代码片段和文件信息

package com.sunday.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 图书信息类
 * 
 */

public class Book {
private String id;

private String name;

private String author;

private String content;

private int category;

private String strCategory;

private String publish_name;

private double price;

private Date on_sale_time;

private String str_on_sale_time;

private int discount;

private String strDiscount;

private int stock;

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getAuthor() {
return author;
}

public void setAuthor(String author) {
this.author = author;
}

public int getCategory() {
return category;
}

public void setCategory(int category) {
this.category = category;
}

public String getContent() {
return content;
}

public void setContent(String content) {
this.content = content;
}

public int getDiscount() {
return discount;
}

public void setDiscount(int discount) {
this.discount = discount;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Date getOn_sale_time() {
return on_sale_time;
}

public void setOn_sale_time(Date on_sale_time) {
this.on_sale_time = on_sale_time;
}

public double getPrice() {
return price;
}

public void setPrice(double price) {
this.price = price;
}

public String getPublish_name() {
return publish_name;
}

public void setPublish_name(String publish_name) {
this.publish_name = publish_name;
}

public int getStock() {
return stock;
}

public void setStock(int stock) {
this.stock = stock;
}

public String getStr_on_sale_time() {
if (getOn_sale_time() != null) {
SimpleDateFormat formatter = new SimpleDateFormat(“yyyy-MM-dd“);

str_on_sale_time = formatter.format(getOn_sale_time());
}

return str_on_sale_time;
}

public void setStr_on_sale_time(String str_on_sale_time) {
this.str_on_sale_time = str_on_sale_time;
}

public String getStrCategory() {
switch (category) {
case 1:
return “计算机类“;
case 2:
return “英语类“;
default:
return “其他类 “;
}
}

public String getStrDiscount() {
switch (discount) {
case 1:
return “是“;
default:
return “否 “;
}
}
}


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

     文件    1420800  2009-01-14 16:41  网上书店JSP+JavaBean+Servlet\实训报告--孙迪章.doc

     文件        625  2009-01-08 22:11  网上书店JSP+JavaBean+Servlet\程序\MyProject\.classpath

     文件        854  2009-01-08 19:56  网上书店JSP+JavaBean+Servlet\程序\MyProject\.project

     文件        330  2009-01-08 19:56  网上书店JSP+JavaBean+Servlet\程序\MyProject\.settings\org.eclipse.jdt.core.prefs

     文件        288  2009-01-08 19:56  网上书店JSP+JavaBean+Servlet\程序\MyProject\.settings\org.eclipse.jst.common.project.facet.core.prefs

     文件        446  2009-01-08 19:56  网上书店JSP+JavaBean+Servlet\程序\MyProject\.settings\org.eclipse.wst.common.component

     文件        269  2009-01-08 19:56  网上书店JSP+JavaBean+Servlet\程序\MyProject\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件       3169  2009-01-11 09:32  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\Book.class

     文件       7487  2009-01-11 09:32  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\BookMgr.class

     文件       1125  2009-01-10 16:21  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\CategoryBook.class

     文件       3588  2009-01-11 09:32  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\Member.class

     文件       9748  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\MemberMgr.class

     文件       1911  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\Order.class

     文件       1908  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\OrderItem.class

     文件       5629  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\OrderItemMgr.class

     文件       6939  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\bean\OrderMgr.class

     文件       2439  2009-01-11 09:32  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\db\ConnDB.class

     文件       2379  2009-01-10 22:40  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\BookListServlet.class

     文件       2651  2009-01-10 16:39  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\CategoryServlet.class

     文件       3669  2009-01-10 21:40  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\ComposeServlet.class

     文件       2466  2009-01-10 22:43  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\DiscountBookServlet.class

     文件       2265  2009-01-10 15:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\FindPasswordServlet.class

     文件       2835  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\LoginServlet.class

     文件       2701  2009-01-10 18:39  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\OrderAdminServlet.class

     文件       2397  2009-01-10 19:46  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\OrderHandlerServlet.class

     文件       2952  2009-01-10 22:00  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\OrderListServlet.class

     文件       3866  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\RegisterServlet.class

     文件       3999  2009-01-10 14:57  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\SearchBookServlet.class

     文件       3565  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\ShopCartServlet.class

     文件       2131  2009-01-10 14:33  网上书店JSP+JavaBean+Servlet\程序\MyProject\build\classes\com\sunday\servlet\ShowBookServlet.class

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

评论

共有 条评论