jsp网上购书系统设计与实现


上传的内容有系统源代码,论文,开题报告,答辩ppt,数据库设计模型,主要运用jsp,struct,Ajax,SQL server的技术实现,开发工具MyEclipse6.0,服务器tomcat
资源截图
代码片段和文件信息
package com.wy.dao;

import java.sql.*;
import java.util.*;

import com.wy.tool.JDBConnection;
import com.wy.domain.AfficheForm;

//对公告信息的操作
public class AfficheDao {
  private Connection connection = null; //定义连接的对象
  private PreparedStatement ps = null; //定义预准备的对象
  private JDBConnection jdbc = null; //定义数据库连接对象
  public AfficheDao() {
    jdbc = new JDBConnection();
    connection = jdbc.connection; //利用构造方法取得数据库连接
  }

  //删除的方法
  public void deleteAffiche(Integer id) {
    try {
      ps = connection.prepareStatement(“delete from tb_affiche where id=?“);
      ps.setInt(1 id.intValue());
      ps.executeUpdate();
      ps.close();
    }
    catch (SQLException ex) {
    }
  }

  //修改的方法
  public void updateAffiche(AfficheForm form) {
    try {
      ps = connection.prepareStatement(“update tb_affiche set name=?content=? where id=?“);
      ps.setString(1 form.getName());
      ps.setString(2 form.getContent());
      ps.setInt(3 form.getId().intValue());
      ps.executeUpdate();
      ps.close();
    }
    catch (SQLException ex) {
    }
  }

//添加的方法
  public void insertAffiche(AfficheForm form) {
    try {
      ps = connection.prepareStatement(“insert into tb_affiche values (??getDate())“);
      ps.setString(1 form.getName());
      ps.setString(2 form.getContent());
      ps.executeUpdate();
      ps.close();
    }
    catch (SQLException ex) {
    }
  }

//以数据库流水号为条件查询信息
  public AfficheForm selectOneAffiche(Integer id) {
    AfficheForm affiche = null;
    try {
      ps = connection.prepareStatement(“select * from tb_affiche where id=?“);
      ps.setInt(1 id.intValue());
      ResultSet rs = ps.executeQuery();
      while (rs.next()) {
        affiche = new AfficheForm();
        affiche.setId(Integer.valueOf(rs.getString(1)));
        affiche.setName(rs.getString(2));
        affiche.setContent(rs.getString(3));
        affiche.setIssueTime(rs.getString(4));
      }
    }
    catch (SQLException ex) {
    }
    return affiche;
  }

//全部查询的方法
  public List selectAffiche() {
    List list = new ArrayList();
    AfficheForm affiche = null;
    try {
      ps = connection.prepareStatement(“select * from tb_affiche order by id DESC“);
      ResultSet rs = ps.executeQuery();
      while (rs.next()) {
        affiche = new AfficheForm();
        affiche.setId(Integer.valueOf(rs.getString(1)));
        affiche.setName(rs.getString(2));
        affiche.setContent(rs.getString(3));
        affiche.setIssueTime(rs.getString(4));
        list.add(affiche);
      }
    }
    catch (SQLException ex) {
    }
    return list;

  }

}

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

     文件    2441728  2010-06-10 16:57  毕业设计最终版618014058-胡开军.ppt

     文件       2097  2010-05-28 13:01  毕业设计最终版ROOTg-afficheContent.jsp

     文件       2240  2010-05-28 13:01  毕业设计最终版ROOTg-afficheInsert.jsp

     文件       3636  2010-05-28 13:01  毕业设计最终版ROOTg-afficheSelect.jsp

     文件       2533  2010-05-28 13:01  毕业设计最终版ROOTg-afficheUpdate.jsp

     文件       2067  2010-05-28 13:01  毕业设计最终版ROOTg-bigTypeInsert.jsp

     文件        392  2010-05-28 13:01  毕业设计最终版ROOTg-bigTypeResult.jsp

     文件       3570  2010-06-01 16:34  毕业设计最终版ROOTg-bigTypeSelect.jsp

     文件        903  2010-05-28 13:01  毕业设计最终版ROOTg-checkMemberResult.jsp

     文件        222  2010-05-28 13:01  毕业设计最终版ROOTg-down.jsp

     文件       4763  2010-05-28 13:01  毕业设计最终版ROOTg-goodInsert.jsp

     文件       4251  2010-06-01 16:35  毕业设计最终版ROOTg-goodSelect.jsp

     文件       3917  2010-06-01 16:36  毕业设计最终版ROOTg-goodSelectBig.jsp

     文件       3930  2010-06-01 16:35  毕业设计最终版ROOTg-goodSelectContent.jsp

     文件       3935  2010-05-28 13:01  毕业设计最终版ROOTg-goodSelectSmall.jsp

     文件       4340  2010-05-28 13:01  毕业设计最终版ROOTg-goodsFreePirce.jsp

     文件       3890  2010-05-28 13:01  毕业设计最终版ROOTg-goodsMarkSelect.jsp

     文件        390  2010-05-28 13:01  毕业设计最终版ROOTg-goodsResult.jsp

     文件       1954  2010-05-28 13:01  毕业设计最终版ROOTg-land.jsp

     文件        655  2010-05-28 13:01  毕业设计最终版ROOTg-landResult.jsp

     文件       6163  2010-05-28 13:01  毕业设计最终版ROOTg-left.jsp

     文件       2351  2010-05-28 13:01  毕业设计最终版ROOTg-linkInsert.jsp

     文件       3381  2010-05-28 13:01  毕业设计最终版ROOTg-linkSelect.jsp

     文件       2632  2010-05-28 13:01  毕业设计最终版ROOTg-managerInsert.jsp

     文件       3878  2010-05-28 13:01  毕业设计最终版ROOTg-managerSelect.jsp

     文件       3246  2010-05-28 13:01  毕业设计最终版ROOTg-managerUpdatePassword.jsp

     文件        795  2010-05-28 13:01  毕业设计最终版ROOTg-memberSuccess.jsp

     文件       3969  2010-06-01 16:33  毕业设计最终版ROOTg-orderContent.jsp

     文件       4548  2010-05-28 13:01  毕业设计最终版ROOTg-orderSelect.jsp

     文件        401  2010-05-28 13:01  毕业设计最终版ROOTg-resultMember.jsp

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)