Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. SQL exception

SQL exception

Scheduled Pinned Locked Moved Java
javadatabasehtmlsalestools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    An Enigma
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • A An Enigma

      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

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      :mad: This Post is Way TOO HUGE !!! :mad:

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups