• 大小: 2.22MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-28
  • 语言: Java
  • 标签: 网上书店  

资源简介

此项目以JSP、servlet、JavaBean实现MVC三层架构,*仅供参考* 环境:eclipse_3.2、myeclipse_5.1、jdk_6.0、tomcat_5.5、数据库sql server 2005 为方便调试,未设置默认首页,请从bookworm.jsp登陆 数据库端口、帐户、密码等可能有所不同,请到BookStore\WebRoot\WEB-INF下的 connection.xml文件中更改配置

资源截图

代码片段和文件信息

package bean;

public class BookBean {

private long bookID=0;
private String bookName=““;
private String author=““;
private String publisher=““;
private double price=0.0;
private double priceDiscount=0.0;
private int pageCount=0;
private String format=““;
private String simpleContent=““;
private int typeID=0;
private String bookView=““;

public BookBean(){

}

public BookBean(long bookID
String bookName
String author
String publisher
double price
double priceRebate
int pageCount
String format
String simpleContent
int typeID
String bookView){
this.bookID=bookID;
this.bookName=bookName;
this.author=author;
this.publisher=publisher;
this.price=price;
this.priceDiscount=0.1*priceRebate*price;
this.pageCount=pageCount;
this.format=format;
this.simpleContent=simpleContent;
this.typeID=typeID;
this.bookView=bookView;
}

public long getBookID(){
return bookID;
}

public String getBookName(){
return bookName;
}

public String getAuthor(){
if(author.length()==0||author==null)
return “暂无“;
else
return author;
}

public double getPrice(){
return price;
}

public double getPriceDiscount(){
return priceDiscount;
}

public int getPageCount(){
return pageCount;
}

public String getFormat(){
return format;
}

public String getSimpleContent(){
return simpleContent;
}

public int getTypeID(){
return typeID;
}

public String getBookView(){
return bookView;
}

public void setBookID(long bookID){
this.bookID=bookID;
}

public void setBookName(String bookName){
this.bookName=bookName;
}

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

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

public void setPriceByOff(double priceDiscount){
this.priceDiscount=priceDiscount;
}

public void setPageCount(int pageCount){
this.pageCount=pageCount;
}

public void setFormat(String format){
this.format=format;
}

public void setSimpleContent(String simpleContent){
this.simpleContent=simpleContent;
}

public void setTypeID(int typeID){
this.typeID=typeID;
}

public void setBookView(String bookView){
this.bookView=bookView;
}

public String getPublisher() {
return publisher;
}

public void setPublisher(String publisher) {
this.publisher = publisher;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\
     文件         410  2007-10-25 11:11  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\.classpath
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\.myeclipse\
     文件         300  2007-10-24 14:12  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\.mymetadata
     文件        1227  2007-10-24 15:44  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\.project
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\bean\
     文件        2536  2007-10-31 15:27  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\bean\BookBean.java
     文件        1370  2007-10-31 15:46  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\bean\Cart.java
     文件         342  2007-08-24 22:12  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\bean\ItemsArray.java
     文件         422  2007-11-22 21:12  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\bean\Order.java
     文件        2365  2007-11-22 21:59  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\bean\User.java
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\
     文件        1372  2007-11-22 23:13  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\acceptUserLogin.java
     文件        1327  2007-11-22 21:08  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\acceptUserRegist.java
     文件         964  2007-10-31 17:04  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\addBook.java
     文件        1269  2007-10-31 16:42  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\checkCart.java
     文件         916  2007-10-31 21:14  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\checkOrder.java
     文件         281  2007-10-29 21:48  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\Convert.java
     文件         255  2007-10-29 21:59  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\Format.java
     文件         688  2007-11-22 23:00  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\Logout.java
     文件        1639  2007-11-22 22:55  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\makeOrder.java
     文件        1055  2007-11-22 23:24  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\orderForm.java
     文件         772  2007-10-31 17:20  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\removeBook.java
     文件        1300  2007-10-30 13:26  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\common\searchBook.java
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\db\
     文件        3089  2007-11-22 20:59  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\db\ConnectionFactory.java
     文件        1834  2007-08-22 20:34  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\db\dbconn.java
     文件       13526  2007-11-22 23:27  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\src\db\dbOperation.java
     目录           0  2011-11-16 14:38  JSP+Servlet+JavaBean(MVC)\网上书店(MVC)\BookStore\WebRoot\
............此处省略77个文件信息

评论

共有 条评论