资源简介

*图书查找*用户注册*图书管理*客户反馈*后台管理,JAVA网上购物系统(JavaBean+Servlet+jsp)

资源截图

代码片段和文件信息

package test.service;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

import test.util.DbConnectionService;
import test.vo.AdminInfo;

public class AdminServiceImpl implements IAdminService {

private Connection connection;
private Statement statement;
private ResultSet resultSet;

public AdminServiceImpl() {
connection = DbConnectionService.getConnection();
try {
statement = connection.createStatement();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

public List getAdmin(AdminInfo adminInfo) {

String sql = “select * from admininfo where admin_name=‘“
+ adminInfo.getAdmin_name() + “‘ and admin_password=‘“
+ adminInfo.getAdmin_password() + “‘“;

List list = new ArrayList();

try {
resultSet = statement.executeQuery(sql);

while (resultSet.next()) {
list.add(new AdminInfo(resultSet.getInt(1) resultSet
.getString(2) resultSet.getString(3)));
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return list;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-04-29 11:33  网上购物系统(JavaBean+Servlet+jsp)\
     目录           0  2016-04-29 11:33  网上购物系统(JavaBean+Servlet+jsp)\Demo\
     文件         571  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\.classpath
     目录           0  2016-04-29 11:49  网上购物系统(JavaBean+Servlet+jsp)\Demo\.myeclipse\
     文件         285  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\.mymetadata
     文件        1222  2008-06-02 13:45  网上购物系统(JavaBean+Servlet+jsp)\Demo\.project
     目录           0  2016-04-29 11:33  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\
     目录           0  2008-06-21 18:49  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\meta-INF\
     文件          39  2008-06-02 13:36  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2016-04-29 11:33  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\
     文件       10763  2008-06-02 13:36  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\c-1_0-rt.tld
     文件       15999  2008-06-02 13:36  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\c.tld
     目录           0  2008-06-21 18:49  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\
     目录           0  2008-06-21 18:49  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\
     目录           0  2016-04-29 11:33  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\
     文件        2088  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\AdminServiceImpl.class
     文件        5009  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\BookServiceImpl.class
     文件        3941  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\CatagoryServiceImpl.class
     文件         260  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\IAdminService.class
     文件         650  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\IBookService.class
     文件         593  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\ICatagoryService.class
     文件         401  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\IMessageBoardService.class
     文件         378  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\IOrderService.class
     文件         396  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\IOrderdetailsService.class
     文件         495  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\IUserinfoService.class
     文件        3386  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\MessageBoardServiceImpl.class
     文件        4486  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\OrderServiceImpl.class
     文件        4698  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\OrderdetailsServiceImpl.class
     文件        3399  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\service\UserinfoServiceImpl.class
     目录           0  2016-04-29 11:33  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\servlet\
     文件        2054  2008-06-21 18:24  网上购物系统(JavaBean+Servlet+jsp)\Demo\WebRoot\WEB-INF\classes\test\servlet\AddBookInfo.class
............此处省略158个文件信息

评论

共有 条评论