- 博客(9)
- 收藏
- 关注
原创 ManageSerlvlet
public class MangeServlet extends HttpServlet { /** * Processes requests for both HTTP <code>GET</code> and <code>POST</code> * methods. * * @param request s...
2018-05-22 22:50:06
177
原创 ProductCL
public class ProductbeanCL { Connection cn = null; boolean flag = false; public ArrayList<Productbean> selectallproducts(){ ArrayList<Productbean> products=new ...
2018-05-22 22:37:41
138
原创 doods.jsp
<%@page import="my.java.Productbean"%><%@page import="java.util.ArrayList"%><%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html&am
2018-05-22 22:36:41
156
原创 LogServlet
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); ...
2018-05-22 22:28:41
220
原创 Conn
public class Conn { Connection cn = null; public Connection getConn() { try { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://127.0.0.1:3306/store...
2018-05-22 22:27:18
499
原创 Userbean (CL)
public class Userbean { private String unm; private String upass; public String getUnm() { return unm; } public void setUnm(String unm) { this.unm = unm; } public St...
2018-05-22 22:26:16
439
原创 商品信息管理系统 index.jsp
index.jsp<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; char
2018-05-22 22:24:20
2427
原创 连接数据库,使用数据库
public class Conn { Connection cn = null; public Connection getConn() { try { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://127.0.0.1:3306/store...
2018-05-20 19:49:36
157
原创 Java scanner 用法
public static void main(String[] args) { Scanner sc = new Scanner(System.in); String in = sc.nextLine(); String[] a = in.split(","); for(String b : a){ System.o...
2018-05-15 22:02:47
306
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人