SQL exception
-
Hi, First time programming JSP as I have to do it for an uni assignment. Basically I have created a register HTML and JSP page:
Register Form Hotel Account ============= ACTION="Register" METHOD="POST"> Customer Name: Customer No: Customer Type: Customer Comp: Customer Address: Nationality: Passport No: Travel Agency: Password:
From there what I am trying to do is insert all the data gathered from the inputs into an DB. Now I have decided to do 4 Java classes and 1 servlet inorder to achieve this. I have created the account class to use the getter and setter methods:/* * Account.java * * Created on October 14, 2008, 9:45 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ /** * * */ public abstract class Account { String CustomerName, CustomerType, CustomerComp, CustomerAddress, Nationality, PassportNo, TravelAgency, Password; int CustomerNo; /** * default constructor */ public Account() { CustomerName = ""; CustomerNo = 0; CustomerType = ""; CustomerComp = ""; CustomerAddress = ""; Nationality = ""; PassportNo = ""; TravelAgency = ""; Password = ""; } /** * Constructor with parameters * @param AccNo int * @param cName String * @param cAddress String * @param bal String * @param sDate Date */ public Account(String cName, int cNo, String cType, String cComp, String cAdd, String n, String pNo, String tAgency, String pass) { CustomerName = cName; CustomerNo = cNo; CustomerType = cType; CustomerComp = cComp; CustomerAddress = cAdd
-
Hi, First time programming JSP as I have to do it for an uni assignment. Basically I have created a register HTML and JSP page:
Register Form Hotel Account ============= ACTION="Register" METHOD="POST"> Customer Name: Customer No: Customer Type: Customer Comp: Customer Address: Nationality: Passport No: Travel Agency: Password:
From there what I am trying to do is insert all the data gathered from the inputs into an DB. Now I have decided to do 4 Java classes and 1 servlet inorder to achieve this. I have created the account class to use the getter and setter methods:/* * Account.java * * Created on October 14, 2008, 9:45 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ /** * * */ public abstract class Account { String CustomerName, CustomerType, CustomerComp, CustomerAddress, Nationality, PassportNo, TravelAgency, Password; int CustomerNo; /** * default constructor */ public Account() { CustomerName = ""; CustomerNo = 0; CustomerType = ""; CustomerComp = ""; CustomerAddress = ""; Nationality = ""; PassportNo = ""; TravelAgency = ""; Password = ""; } /** * Constructor with parameters * @param AccNo int * @param cName String * @param cAddress String * @param bal String * @param sDate Date */ public Account(String cName, int cNo, String cType, String cComp, String cAdd, String n, String pNo, String tAgency, String pass) { CustomerName = cName; CustomerNo = cNo; CustomerType = cType; CustomerComp = cComp; CustomerAddress = cAdd
:mad: This Post is Way TOO HUGE !!! :mad:
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]