J2EE 实验报告
1. 实验内容
用 JSF 实现订单系统
2. 程序概要
主要的 JAVABEAN!实现连接数据库,编辑数据库,返回结果集等功能
package order;
import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.ValidatorException;
import order.Orderitembean;
public class Orderbean {
private int id;
private String customer;
private int total;
private Object ArrayListaList;
public Orderbean(){}
public Orderbean(int id,String customer,int total){}
public int getId() {
return id;