资源简介
jsp+access做的网上投票系统。具有全面的后台管理功能。

代码片段和文件信息
package dbBean;
import java.sql.*;
public class DBBean
{
private String driverStr = “sun.jdbc.odbc.JdbcOdbcDriver“;
private String connStr = “jdbc:odbc:vote“;
private Connection conn = null;
private Statement stmt = null;
public DBBean()
{
try {
Class.forName(driverStr);
}
catch(ClassNotFoundException ex) {
System.out.println(ex.getMessage());
}
}
public void setDriverStr(String dstr)
{
driverStr=dstr;
}
public void setConnStr(String cstr)
{
connStr=cstr;
}
public ResultSet executeQuery(String sql)
{
ResultSet rs = null;
try {
conn = DriverManager.getConnection(connStr);
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
}
catch(SQLException ex) {
System.out.println(ex.getMessage());
}
return rs;
}
public int executeUpdate(String sql)
{
int result=0;
try{
conn = DriverManager.getConnection(connStr);
stmt = conn.createStatement();
result = stmt.executeUpdate(sql);
}
catch(SQLException ex){
System.out.println(ex.getMessage());
}
return result;
}
public void close()
{
try{
stmt.close();
conn.close();
}
catch(SQLException ex){
System.out.println(ex.getMessage());
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 410 2008-05-09 09:29 vote\add.jsp
文件 87 2008-05-08 21:11 vote\checkadmin.jsp
文件 319 2008-05-08 21:12 vote\delete.jsp
文件 908 2008-05-08 21:09 vote\index.jsp
文件 837 2008-05-08 21:12 vote\login.jsp
文件 1011 2008-05-09 09:30 vote\manage.jsp
文件 649 2008-05-08 21:57 vote\process.jsp
文件 439 2008-05-08 21:14 vote\vote.jsp
文件 204800 2008-05-09 12:32 vote\vote.mdb
文件 945 2008-05-09 10:25 vote\info.jsp
文件 1267 2008-05-09 12:27 vote\DBBean.java
文件 375 2008-05-08 21:08 vote\WEB-INF\web.xm
文件 1817 2008-05-09 12:28 vote\WEB-INF\classes\dbBean\DBBean.class
文件 39 2008-05-08 21:08 vote\me
目录 0 2008-06-23 21:11 vote\WEB-INF\classes\dbBean
目录 0 2008-06-23 21:11 vote\WEB-INF\classes
目录 0 2008-06-23 21:11 vote\WEB-INF\lib
目录 0 2008-06-23 21:11 vote\WEB-INF
目录 0 2008-06-23 21:11 vote\me
目录 0 2008-06-23 21:11 vote
----------- --------- ---------- ----- ----
213903 20
相关资源
- 微博系统(Java源码,servlet+jsp),适
- JSP企业人事管理系统设计(源代码+论
- 实现一个图书管理系统
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- JSP,SQL,MVC的选课系统
- 基于JSP的学生宿舍管理系统(源码 数
- JSP选课管理系统
- mysql jsp网站源码下载
- JSP做的化妆品商城
- Jsp购物车实例
- 基于JSP的校友信息管理系统(添加数
- 基于jsp的bbs论坛 非常详细
- jsp oracle通讯录
- JSP学生信息管理系统 Mysql数据库
- 使用jsp servlet做的投票系统
- JSP登陆验证 实现JSP用户名 密码 验
- jsp基于servlet 图书馆管理系统
- jsp学生成绩管理系统.rar
- 在线考试系统源代码(jsp)
- 超级好的纯jsp写的聊天室
- JSP 网上购物网页项目
- JSP+mysql新闻发布系统.rar
- jsp 学生信息管理系统设计与实现
- jsp与SQL Server数据库实现的客户注册登
- 简易教学管理系统(jsp spring struts h
- 学生信息管理系统 JSP MySQL
- jsp ajax 三级联动菜单
- jsp新闻公告与最新消息系统(具备添
- JSP课程设计-留言本 jsp mysql tomcat实现
评论
共有 条评论