I need a web based JDBC program

Hello,
I'm a web designer \web programmer. My experience has been with PHP and Mysql. But my Java skills are not that good since I�m new to it.
I need to write a database program in Java and my database will be oracle.
Basically this program is used for a restaurant where customers will be able to order online and the restaurant will see the order instantly (like Instant message) and process the order so when customer comes to pick it up, it will be ready.
I just need help with this project like readings or sample if any of you are informed of. I prefer a sample database like it.
I appreciate it.

You start with the tutorial...
http://java.sun.com/products/jdbc/learning.html
Presumably you have already done one or more tutorials on swing, etc. If not then you should start there rather than on the jdbc tutorials.

Similar Messages

  • Web based mail program like hotmail or yahoo

    Hi All,
    How do I create a web based mail program like yahoo or hotmail using Java Mail API?
    If any one knows please let me know.
    my email id: [email protected]
    Thanks and Regards,
    Sarat

    Dear sarat,
    First of all u tell me why u want to develop web based mail like yahoo or hotmail, If u want to develop for learning purpose then start from today using java mail API. So u should know Java Mail API. and some webbase scripting like JSP and HTML.
    Once u start and if any problem then write in forum we will solve.
    If u don't want to develop for learning purpose then u buy it.
    Regards
    Kinjal Shah.

  • Web-based mail program as default for emailing photos?

    I'd prefer to use my gmail account to send photos, rather than my Mail account. But the options are only for Mail, Entourage, and AOL, I think.
    I can't seem to figure out how to do this any other way than from gmail, click "attach a file" and browse through my directories and select each individual photo. This would be fine, except that the attachments are enormous and I can't figure out how to resize them to a manageable size.
    So, to summarize. Is it possible to use a web-based mail program as your iphoto default? If not, how can I shrink the size down to 240X320 or 640X480, or somewhere in that range?
    I'm using iphoto 4.0.3. Thanks.

    There are programs that allow you to designate a web mail page for the default email program (WebMailer for one). I would guess they should work the same jumping from iPhoto, but don't know how well they'd work at attaching an image since that is usually a process specific to how the page is designed.
    Probably, it'd be easiest to leave Mail as the default email app with Gmail set as the default account, for situations like this, and use the regular webmail interface when you're not planning to attach an image if you like that interface more.

  • Cannot connect to modem's web-based-configuration program

    Hello,
    I'm trying to connect to my modem's (D-Link DSL-321B) web-based-configuration program by giving its ip-address (192.168.1.1) in a Safari widow. I get the error message "Safari can't open page 192.168.1.1 because the server where the page is located isn't responding".
    The modem is connected via ethernet cable to an airport time capsule. The mac is then connect via WiLan. I have tried other web browser programs, rebooted everything, reset the modem, connected the modem to my macbook via ethernet cable and read ALOT of information but I still can't find the solution and get into the menu. BTW, all Mac software is up to date.
    I would be really grateful for some help. Thanks in advance.

    Hi Linc, thanks for the reply and sorry for the delayed response. I have tried your recommendation and unfortunately, it did not help, same error message. Any other suggestions? Thanks

  • How can I add a different web-based email program to use as my default 'mailto:' function?

    When I go to Settings -> Applications and click on 'mailto', I see 'Use Yahoo mail, Use Gmail, and Use other...'. I want to use the Go Daddy Workspace Webmail application, which like Yahoo & Gmail, is a web based program, but don't see any way to add that option. The 'Use other...' option is only looking for an executable file and it won't accept a web-based command.

    I found an old thread about the same type of issue. I cannot be certain whether it still works or not. Feel free to checkout the thread [https://support.mozilla.org/en-US/questions/917427 here].

  • Accessing web based work program with Citrix Server

    Can I access a web based program that uses a citrix server with the ipad2 -- I currently access this with my laptop but thinking about using the iPad2 for work

    H E L L O !   - a JAVA book probably by Sue ???
    So you know about this then? - GOOD!
    Actually the first chapter is all about the early attempts to succeed in achieving computational result with a binary output, plus of course the history of programming perverts and people who were relatively normal once upon a while. It goes from Nigel Astley Heatherington-Smythe, who as one time assistant to Charles Babbage spent the remainder of his twilight years with the Tuareg people of North Africa, mounting camels and cackling insanely to himself whist reciting natural logarithm tables. And spanning right accross the decades to the present day 'uj' from Sweden, who seems to be suffering from a severe gender identity crisis typical of many of his forebears.
    (The second chapter is about spanking ... mostly)

  • Using a swing program with a gui-based jdbc program

    hello.
    my name is james mcfadden and i am a final year computing student at letterkenny IT in ireland. i have 2 programs here that i want to make interact with each other. the first one is a jdbc demo and the second one is a login program that i'll be using with the first one. i was trying to get the 2 programs interacting with each other yesterday but i was unsuccessful. would you be able to look at it as soon as possible? i have to be able to use these programs next week. thank you very much.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JOptionPane;
    import java.sql.*;
    public class Demo extends JFrame {
    static String url = "jdbc:odbc:VideoLibrary";
    static Statement stmt;
    static Connection con;
         //declare member variables here
         JTextField hostField;
    JTextField queryField;
    QueryTableModel qtm;
    JComboBox comboBox;
    public static void main(String args[]){
         //new LogOn();     
    int choice=-1;
              do{
    choice=getChoice();
    if(choice!=0){
    getSelected(choice);
    }while(choice!=5);
    System.exit(0);
    public static int getChoice(){
    String choice;
    int ch;
    choice = JOptionPane.showInputDialog(null,"1. Maintain product details\n"+"2. Maintain member details\n"+"3. Maintain rental details\n"+"4. View product, member and rental details\n"+"5. Log Off\n\n"+"Enter your choice");
              ch = Integer.parseInt(choice);
    return ch;
    public static void getSelected(int choice){   
              if(choice==1){
    addProducts();
    if(choice==2){
    addMembers();
              if(choice==3){
    addRentals();
              if(choice==4){
              Demo test = new Demo();
    test.setVisible(true);
    public static Connection getConnection(){
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con=DriverManager.getConnection(url,"","");
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    return con;
    public static void addProducts(){
    Connection con = getConnection();
    String addProduct1, addProduct2, addProduct3, addProduct4, addProduct5, addProduct6, addProduct7, addProduct8, addProduct9, addProduct10, addProduct11, addProduct12, addProduct13, addProduct14, addProduct15, addProduct16, addProduct17, addProduct18, addProduct19, addProduct20, addProduct21, addProduct22, addProduct23, addProduct24, addProduct25, addProduct26, addProduct27, addProduct28, addProduct29, addProduct30, addProduct31, addProduct32, addProduct33, addProduct34, addProduct35, addProduct36, addProduct37, addProduct38, addProduct39, addProduct40, addProduct41, addProduct42, addProduct43, addProduct44, addProduct45, addProduct46, addProduct47, addProduct48, addProduct49, addProduct50, addProduct51, addProduct52, addProduct53, addProduct54, addProduct55, addProduct56, addProduct57, addProduct58, addProduct59, addProduct60, addProduct61, addProduct62, addProduct63, addProduct64, addProduct65, addProduct66, addProduct67, addProduct68, addProduct69, addProduct70, addProduct71, addProduct72, addProduct73, addProduct74, addProduct75, addProduct76, addProduct77, addProduct78, addProduct79, addProduct80, addProduct81, addProduct82, addProduct83, addProduct84, addProduct85, addProduct86, addProduct87, addProduct88, addProduct89, addProduct90, addProduct91, addProduct92, addProduct93;
    addProduct1 = "insert into Product values (110001, 'The Killers - Sams Town', 5.00, 'G', 'CD', 2006)";
    addProduct2 = "insert into Product values (110002, 'Robbie Williams - Rudebox', 5.00, 'G', 'CD', 2006)";
    addProduct3 = "insert into Product values (110003, 'Razorlight - Razorlight', 5.00, 'G', 'CD', 2006)";
    addProduct4 = "insert into Product values (110004, 'My Chemical Romance - The Black Parade', 5.00, 'G', 'CD', 2006)";
    addProduct5 = "insert into Product values (110005, 'Snow Patrol - Eyes Open', 5.00, 'G', 'CD', 2006)";
    addProduct6 = "insert into Product values (110006, 'Scissor Sisters - Ta-Dah!', 5.00, 'G', 'CD', 2006)";
              addProduct7 = "insert into Product values (110007, 'Lovesounds - Justin Timberlake', 5.00, 'G', 'CD', 2006)";
    addProduct8 = "insert into Product values (110008, 'Director - We thrive on big cities', 5.00, 'G', 'CD', 2006)";
    addProduct9 = "insert into Product values (110009, 'Roxette - Roxette hits', 5.00, 'G', 'CD', 2006)";
    addProduct10 = "insert into Product values (110010, 'Pussy Cat Dolls - PCD', 5.00, 'G', 'CD', 2006)";
    addProduct11 = "insert into Product values (110011, 'Evanescence - The Open Door', 5.00, 'G', 'CD', 2006)";
    addProduct12 = "insert into Product values (110012, 'Deacon Blue - The Singles', 5.00, 'G', 'CD', 2006)";
              addProduct13 = "insert into Product values (110013, 'Rod Stewart - The Best of Rod Stewart', 5.00, 'G', 'CD', 2006)";
              addProduct14 = "insert into Product values (110014, 'P Diddy - Press Play', 5.00, 'G', 'CD', 2006)";
    addProduct15 = "insert into Product values (110015, 'James Morrison - Undiscovered', 5.00, 'G', 'CD', 2006)";
    addProduct16 = "insert into Product values (110016, 'BDay - Beyonce', 5.00, 'G', 'CD', 2006)";
    addProduct17 = "insert into Product values (110017, 'John Legend - Once Again', 5.00, 'G', 'CD', 2006)";
              addProduct18 = "insert into Product values (110018, 'Luther Vandross - The Ultimate', 5.00, 'G', 'CD', 2006)";
              addProduct19 = "insert into Product values (110019, 'Fleetwood Mac - Greatest Hits', 5.00, 'G', 'CD', 2006)";
              addProduct20 = "insert into Product values (110020, 'Kooks - Inside In Inside Out', 5.00, 'G', 'CD', 2006)";
              addProduct21 = "insert into Product values (110021, 'Scooter - Mind the Gap', 5.00, 'G', 'CD', 2007)";
              addProduct22 = "insert into Product values (110022, 'Scooter - Whos Got the Last', 5.00, 'G', 'CD', 2007)";
              addProduct23 = "insert into Product values (110023, 'Scooter - Jigga Jigga', 5.00, 'G', 'CD', 2007)";
              addProduct24 = "insert into Product values (110024, 'Dr. Alban - Look Whos Talking', 5.00, 'G', 'CD', 2007)";
              addProduct25 = "insert into Product values (110025, 'Dr. Alban - Hello Afrika', 5.00, 'G', 'CD', 2007)";
              addProduct26 = "insert into Product values (110026, 'Dr. Alban - Born in Africa', 5.00, 'G', 'CD', 2007)";
              addProduct27 = "insert into Product values (110027, 'Bon Jovi - Crossroad', 5.00, 'G', 'CD', 2007)";
              addProduct28 = "insert into Product values (110028, 'Bon Jovi - Have a Nice Day', 5.00, 'G', 'CD', 2007)";
              addProduct29 = "insert into Product values (110029, 'Bon Jovi - These Days', 5.00, 'G', 'CD', 2007)";
              addProduct30 = "insert into Product values (120001, 'Mission Impossible 3', 5.00, '15', 'DVD', 2006)";
              addProduct31 = "insert into Product values (120002, 'The Wind that Shakes the Barley', 5.00, '12', 'DVD', 2006)";
              addProduct32 = "insert into Product values (120003, 'The Break Up', 5.00, '12', 'DVD', 2006)";
              addProduct33 = "insert into Product values (120004, 'The Da Vinci Code', 5.00, '15', 'DVD', 2006)";
              addProduct34 = "insert into Product values (120005, 'Ice Age 2', 5.00, 'G', 'DVD', 2006)";
              addProduct35 = "insert into Product values (120006, 'Just My Luck', 5.00, '12', 'DVD', 2006)";
              addProduct36 = "insert into Product values (120007, 'Stormbreaker', 5.00, '12', 'DVD', 2006)";
              addProduct37 = "insert into Product values (120008, 'X-Men 3', 5.00, 'PG', 'DVD', 2006)";
              addProduct38 = "insert into Product values (120009, 'Lake House', 5.00, '12', 'DVD', 2006)";
              addProduct39 = "insert into Product values (120010, 'Inside Man', 5.00, '15', 'DVD', 2006)";
              addProduct40 = "insert into Product values (120011, 'Ultraviolet', 5.00, '12', 'DVD', 2006)";
              addProduct41 = "insert into Product values (120012, 'Friends with Money', 5.00, '15', 'DVD', 2006)";
              addProduct42 = "insert into Product values (120013, 'Fearless', 5.00, 'PG', 'DVD', 2006)";
              addProduct43 = "insert into Product values (120014, 'When A Stranger Calls', 5.00, '15', 'DVD', 2006)";
              addProduct44 = "insert into Product values (120015, 'Prime', 5.00, '15', 'DVD', 2006)";
              addProduct45 = "insert into Product values (120016, 'Poseidon', 5.00, '12', 'DVD', 2006)";
              addProduct46 = "insert into Product values (120017, 'Tristan & Isolde', 5.00, '12', 'DVD', 2006)";
              addProduct47 = "insert into Product values (120018, 'Little Mermaid', 5.00, '12', 'DVD', 2006)";
              addProduct48 = "insert into Product values (120019, 'The Fast & The Furious 3', 5.00, '12', 'DVD', 2006)";
              addProduct49 = "insert into Product values (120020, 'The Omen', 5.00, '15', 'DVD', 2006)";
              addProduct50 = "insert into Product values (120021, 'Eragon', 5.00, '15', 'DVD', 2007)";
              addProduct51 = "insert into Product values (120022, 'Arthur and the Minimoys', 5.00, '15', 'DVD', 2007)";
              addProduct52 = "insert into Product values (120023, 'The Pursuit of Happyness', 5.00, 'G', 'DVD', 2007)";
              addProduct53 = "insert into Product values (120024, 'Van Wilder 2: The Rise of Taj', 5.00, '15', 'DVD', 2007)";
              addProduct54 = "insert into Product values (120025, 'Blood Diamond', 5.00, '15', 'DVD', 2007)";
              addProduct55 = "insert into Product values (120026, 'Deja Vu', 5.00, '15', 'DVD', 2007)";
              addProduct56 = "insert into Product values (120027, 'For Your Consideration', 5.00, '18', 'DVD', 2007)";
              addProduct57 = "insert into Product values (120028, 'The Fountain', 5.00, 'PG', 'DVD', 2007)";
              addProduct58 = "insert into Product values (120029, 'Bobby', 5.00, '15', 'DVD', 2007)";
              addProduct59 = "insert into Product values (130001, 'Need for Special Carbon', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct60 = "insert into Product values (130002, 'Need for Special Carbon', 5.00, '15', 'Nintendo DS Game', 2006)";
              addProduct61 = "insert into Product values (130003, 'Need for Special Carbon', 5.00, '15', 'PSP Game', 2006)";
              addProduct62 = "insert into Product values (130004, 'Need for Special Carbon', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct63 = "insert into Product values (130005, 'EYETOY Play SPORTS', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct64 = "insert into Product values (130006, 'Family Fun With Playstation 2', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct65 = "insert into Product values (130007, 'Smackdown v Raw 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct66 = "insert into Product values (130008, 'Smackdown v Raw 07', 5.00, '15', 'PSP Game', 2006)";
              addProduct67 = "insert into Product values (130009, 'Smackdown v Raw 07', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct68 = "insert into Product values (130010, 'Sinister Legends', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct69 = "insert into Product values (130011, 'Pro Evolution Soccer 6', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct70 = "insert into Product values (130012, 'Pro Evolution Soccer 6', 5.00, '15', 'PSP Game', 2006)";
              addProduct71 = "insert into Product values (130013, 'Pro Evolution Soccer 6', 5.00, '15', 'Xbox 360 Game', 2006)";
              addProduct72 = "insert into Product values (130014, 'BUZZ Jungle Party', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct73 = "insert into Product values (130015, 'FIFA 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct74 = "insert into Product values (130016, 'Killzone Liberation', 5.00, '15', 'PSP Game', 2006)";
              addProduct75 = "insert into Product values (130017, 'Gangs of London', 5.00, '15', 'PSP Game', 2006)";
              addProduct76 = "insert into Product values (130018, 'FIFA 07', 5.00, '15', 'PSP Game', 2006)";
              addProduct77 = "insert into Product values (130019, 'Passport to Amsterdam', 5.00, '15', 'PSP Game', 2006)";
              addProduct78 = "insert into Product values (130020, 'Tiger Woods 07', 5.00, '15', 'Playstation 2 Game', 2006)";
              addProduct79 = "insert into Product values (130021, 'Tiger Woods 07', 4.90, '15', 'PSP Game', 2006)";
              addProduct80 = "insert into Product values (130022, 'Tiger Woods 07', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct81 = "insert into Product values (130023, 'Madden NFL 07', 4.90, '15', 'Playstation 2 Game', 2006)";
              addProduct82 = "insert into Product values (130024, 'Madden NFL 07', 4.90, '15', 'Nintendo DS Game', 2006)";
              addProduct83 = "insert into Product values (130025, 'Madden NFL 07', 4.90, '15', 'PSP Game', 2006)";
              addProduct84 = "insert into Product values (130026, 'Madden NFL 07', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct85 = "insert into Product values (130027, 'Gears of War', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct86 = "insert into Product values (130028, 'Star Trek: Legacy', 4.90, '15', 'Xbox 360 Game', 2006)";
              addProduct87 = "insert into Product values (130029, 'Tekken: Dark Ressurection', 4.90, '15', 'PSP Game', 2006)";
              addProduct88 = "insert into Product values (130030, 'GTA Vice city stories PSP', 4.90, '15', 'PSP Game', 2006)";
              addProduct89 = "insert into Product values (130031, 'Star Trek: Encounters', 5.00, '15', 'Playstation 2 Game', 2007)";
              addProduct90 = "insert into Product values (130032, 'Star Trek: Shattered Universe', 5.00, '15', 'Xbox 360 Game', 2007)";
              addProduct91 = "insert into Product values (130033, 'Star Trek Voyager: Elite Force', 5.00, '15', 'Playstation 2 Game', 2007)";
              addProduct92 = "insert into Product values (130034, 'Battlestar Galactica', 5.00, '15', 'Xbox 360 Game', 2007)";
              addProduct93 = "insert into Product values (130035, 'Battlestar Galactica', 5.00, '15', 'Playstation 2 Game', 2007)";
              try {
    stmt = con.createStatement();
    stmt.executeUpdate(addProduct1);
    stmt.executeUpdate(addProduct2);
    stmt.executeUpdate(addProduct3);
    stmt.executeUpdate(addProduct4);
                   stmt.executeUpdate(addProduct5);
    stmt.executeUpdate(addProduct6);
              stmt.executeUpdate(addProduct7);
    stmt.executeUpdate(addProduct8);
    stmt.executeUpdate(addProduct9);
    stmt.executeUpdate(addProduct10);
    stmt.executeUpdate(addProduct11);
    stmt.executeUpdate(addProduct12);
              stmt.executeUpdate(addProduct13);
              stmt.executeUpdate(addProduct14);
    stmt.executeUpdate(addProduct15);
    stmt.executeUpdate(addProduct16);
    stmt.executeUpdate(addProduct17);
              stmt.executeUpdate(addProduct18);
              stmt.executeUpdate(addProduct19);
              stmt.executeUpdate(addProduct20);
              stmt.executeUpdate(addProduct21);
              stmt.executeUpdate(addProduct22);
              stmt.executeUpdate(addProduct23);
              stmt.executeUpdate(addProduct24);
              stmt.executeUpdate(addProduct25);
              stmt.executeUpdate(addProduct26);
              stmt.executeUpdate(addProduct27);
              stmt.executeUpdate(addProduct28);
              stmt.executeUpdate(addProduct29);
              stmt.executeUpdate(addProduct30);
              stmt.executeUpdate(addProduct31);
              stmt.executeUpdate(addProduct32);
              stmt.executeUpdate(addProduct33);
              stmt.executeUpdate(addProduct34);
              stmt.executeUpdate(addProduct35);
              stmt.executeUpdate(addProduct36);
              stmt.executeUpdate(addProduct37);
              stmt.executeUpdate(addProduct38);
              stmt.executeUpdate(addProduct39);
              stmt.executeUpdate(addProduct40);
              stmt.executeUpdate(addProduct41);
              stmt.executeUpdate(addProduct42);
              stmt.executeUpdate(addProduct43);
              stmt.executeUpdate(addProduct44);
              stmt.executeUpdate(addProduct45);
              stmt.executeUpdate(addProduct46);
              stmt.executeUpdate(addProduct47);
              stmt.executeUpdate(addProduct48);
              stmt.executeUpdate(addProduct49);
              stmt.executeUpdate(addProduct50);
              stmt.executeUpdate(addProduct51);
              stmt.executeUpdate(addProduct52);
              stmt.executeUpdate(addProduct53);
              stmt.executeUpdate(addProduct54);
              stmt.executeUpdate(addProduct55);
              stmt.executeUpdate(addProduct56);
              stmt.executeUpdate(addProduct57);
              stmt.executeUpdate(addProduct58);
              stmt.executeUpdate(addProduct59);
              stmt.executeUpdate(addProduct60);
              stmt.executeUpdate(addProduct61);
              stmt.executeUpdate(addProduct62);
              stmt.executeUpdate(addProduct63);
              stmt.executeUpdate(addProduct64);
              stmt.executeUpdate(addProduct65);
              stmt.executeUpdate(addProduct66);
              stmt.executeUpdate(addProduct67);
              stmt.executeUpdate(addProduct68);
              stmt.executeUpdate(addProduct69);
              stmt.executeUpdate(addProduct70);
              stmt.executeUpdate(addProduct71);
              stmt.executeUpdate(addProduct72);
              stmt.executeUpdate(addProduct73);
              stmt.executeUpdate(addProduct74);
              stmt.executeUpdate(addProduct75);
              stmt.executeUpdate(addProduct76);
              stmt.executeUpdate(addProduct77);
              stmt.executeUpdate(addProduct78);
              stmt.executeUpdate(addProduct79);
              stmt.executeUpdate(addProduct80);
              stmt.executeUpdate(addProduct81);
              stmt.executeUpdate(addProduct82);
              stmt.executeUpdate(addProduct83);
              stmt.executeUpdate(addProduct84);
              stmt.executeUpdate(addProduct85);
              stmt.executeUpdate(addProduct86);
              stmt.executeUpdate(addProduct87);
              stmt.executeUpdate(addProduct88);
              stmt.executeUpdate(addProduct89);
              stmt.executeUpdate(addProduct90);
              stmt.executeUpdate(addProduct91);
              stmt.executeUpdate(addProduct92);
              stmt.executeUpdate(addProduct93);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public static void addMembers(){
    Connection con = getConnection();
    String addMember1, addMember2, addMember3, addMember4, addMember5, addMember6, addMember7, addMember8, addMember9, addMember10;
    addMember1 = "insert into Member values (1234, 'Ann', 'Smyth', 'Upper Killult, Falcarragh, Co. Donegal', '(074)-9135210', '(087)-2030172', #5/11/85#, #5/12/06#)";
    addMember2 = "insert into Member values (2345, 'John', 'Murphy', 'Lower Killult, Falcarragh, Co. Donegal', '(074)-9135211', '(087)-2030173', #4/12/85#, #6/13/06#)";
    addMember3 = "insert into Member values (1324, 'James', 'McFadden', 'Lower Ardsbeg, Gortahork, Co. Donegal', '(074)-9165314', '(087)-2030171', #4/11/85#, #6/14/06#)";
    addMember4 = "insert into Member values (1235, 'Frankie', 'Ferry', 'Ardsmore, Gortahork, Co. Donegal', '(074)-9165325', '(087)-2031234', #6/13/60#, #6/15/06#)";
    addMember5 = "insert into Member values (1236, 'Daniel', 'McKimm', 'Ballyness, Falcarragh, Co. Donegal', '(074)-9135212', '(087)-2030184', #5/14/73#, #6/16/06#)";
    addMember6 = "insert into Member values (2346, 'Stephen', 'Doohan', 'Ballyness, Falcarragh, Co. Donegal', '(074)-9135213', '(087)-2030185', #6/13/85#, #5/13/06#)";
    addMember7 = "insert into Member values (2347, 'James', 'Ferry', 'Meenlaragh, Gortahork, Co.Donegal', '(074)-9165360', '(087)-2031345', #9/12/85#, #5/14/06#)";
    addMember8 = "insert into Member values (2348, 'Liam', 'Cannon', 'Derryconner, Gortahork, Co.Donegal', '(074)-9165324', '(087)-2031456', #4/11/86#, #5/15/06#)";
    addMember9 = "insert into Member values (2401, 'Ciaran', 'Ferry', 'Brinalack, Gweedore, Co.Donegal', '(074)-9176425', '(087)-2030282', #9/12/85#, #5/16/06#)";
    addMember10 = "insert into Member values (2402, 'Ciaran', 'McGee', 'Derrybeg, Gweedore, Co.Donegal', '(074)-9176536', '(087)-2030393', #9/14/85#, #5/18/06#)";
    try {
    stmt = con.createStatement();
    stmt.executeUpdate(addMember1);
    stmt.executeUpdate(addMember2);
    stmt.executeUpdate(addMember3);
                   stmt.executeUpdate(addMember4);
                   stmt.executeUpdate(addMember5);
                   stmt.executeUpdate(addMember6);
                   stmt.executeUpdate(addMember7);
                   stmt.executeUpdate(addMember8);
                   stmt.executeUpdate(addMember9);
                   stmt.executeUpdate(addMember10);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
         public static void addRentals(){
    Connection con = getConnection();
    String addRental1, addRental2, addRental3, addRental4, addRental5, addRental6, addRental7, addRental8, addRental9, addRental10;
    addRental1 = "insert into Rental values (110001, 'The Killers - Sams Town', 1234, 'Ann', 'Smyth', #9/01/06#, #9/10/06#, 'Yes', 2.00)";
    addRental2 = "insert into Rental values (120001, 'Mission Impossible 3', 2345, 'John', 'Murphy', #9/02/06#, #9/09/06#, 'No', 0.00)";
    addRental3 = "insert into Rental values (130001, 'Need for Special Carbon', 1324, 'James', 'McFadden', #9/03/06#, #9/12/06#, 'Yes', 2.00)";
    addRental4 = "insert into Rental values (110002, 'Robbie Williams - Rudebox', 1235, 'Frankie', 'Ferry', #9/04/06#, #9/11/06#, 'No', 0.00)";
    addRental5 = "insert into Rental values (120015, 'Prime', 1236, 'Daniel', 'McKimm', #9/05/06#, #9/14/06#, 'Yes', 2.00)";
    addRental6 = "insert into Rental values (130015, 'FIFA 07', 2346, 'Stephen', 'Doohan', #9/06/06#, #9/13/06#, 'No', 0.00)";
    addRental7 = "insert into Rental values (110009, 'Roxette - Roxette hits', 2347, 'James', 'Ferry', #9/07/06#, #9/16/06#, 'Yes', 2.00)";
    addRental8 = "insert into Rental values (120003, 'The Break Up', 2348, 'Liam', 'Cannon', #9/08/06#, #9/15/06#, 'No', 0.00)";
    addRental9 = "insert into Rental values (130027, 'Gears of War', 2401, 'Ciaran', 'Ferry', #9/09/06#, #9/18/06#, 'Yes', 2.00)";
    addRental10 = "insert into Rental values (110021, 'Scooter - Mind the Gap', 2402, 'Ciaran', 'McGee', #9/10/06#, #9/17/06#, 'No', 0.00)";
    try {
    stmt = con.createStatement();
    stmt.executeUpdate(addRental1);
    stmt.executeUpdate(addRental2);
    stmt.executeUpdate(addRental3);
                   stmt.executeUpdate(addRental4);
                   stmt.executeUpdate(addRental5);
                   stmt.executeUpdate(addRental6);
                   stmt.executeUpdate(addRental7);
                   stmt.executeUpdate(addRental8);
                   stmt.executeUpdate(addRental9);
                   stmt.executeUpdate(addRental10);
    stmt.close();
    con.close();
              catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public Demo(){
    super("Demo Test Frame");
    setSize(350, 200);
    comboBox = new JComboBox();
    comboBox.addItem("jdbc:odbc:VideoLibrary");
    qtm = new QueryTableModel();
    JTable table = new JTable(qtm);
    JScrollPane scrollpane = new JScrollPane(table);
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(3, 2));
    p1.add(comboBox);
    p1.add(new JLabel("Enter your query: "));
    p1.add(queryField = new JTextField());
    p1.add(new JLabel("Click here to send: "));
    JButton jb = new JButton("Search");
    jb.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    qtm.setHostURL();
    qtm.setQuery(queryField.getText().trim());
    p1.add(jb);
    getContentPane().add(p1, BorderLayout.NORTH);
    getContentPane().add(scrollpane, BorderLayout.CENTER);
    }//end class
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
         private static JTextField username=null;
         private static JPasswordField password=null;
         private static JButton button=null;
    public LogOn(){
              setSize(260,160);
              username=new JTextField(15);
         password=new JPasswordField(15);
              //JPanel pane=new JPanel();
              JLabel usernameLabel=new JLabel("Username: ");
              JLabel passwordLabel=new JLabel("Password: ");
              /*pane.*/add(usernameLabel);
              /*pane.*/add(username);
              /*pane.*/add(passwordLabel);
              /*pane.*/add(password);
              //setContentPane(pane);
              show();
              button=new JButton("Ok");
              add(button);
         button.addActionListener(new ButtonListener());
              JFrame frame=new JFrame("Welcome to Home Entertainment");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.getContentPane().add(new LogOn());
         frame.pack();
         frame.setVisible(true);
         private class ButtonListener implements ActionListener{
         public void actionPerformed(ActionEvent e){
              try{
                        new Demo();
                   catch(Exception ex){}     
    }

    here's the code (again, but it doesn't look as ugly as it did earlier on).
    i have three programs, only 2 of which can interact with each other. QueryTestTable.java is used with Demo.java to display data in a JTable. the third program is called LogOn.java. i want to use the LogOn.java (username and password for logging on to the system) program in order to be able to use the other 2 programs. i have to be able to use these programs next week. thank you very much.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JOptionPane;
    import java.sql.*;
    public class Demo extends JFrame {
       static String url = "jdbc:odbc:VideoLibrary";
       static Statement stmt;
       static Connection con;
       //declare member variables here
       JTextField hostField;
       JTextField queryField;
       QueryTableModel qtm;
       JComboBox comboBox;
       public static void main(String args[]){
          //new LogOn();
          int choice=-1;
          do{
             choice=getChoice();
             if(choice!=0){
                getSelected(choice);
          }while(choice!=5);
          System.exit(0);
       public static int getChoice(){
          String choice;
          int ch;
          choice = JOptionPane.showInputDialog(null,"1. Maintain product      
          details\n"+"2. Maintain member details\n"+"3. Maintain rental 
          details\n"+"4. View product, member and rental details\n"+"5. Log 
          Off\n\n"+"Enter your choice");
          ch = Integer.parseInt(choice);
          return ch;
       public static void getSelected(int choice){
          if(choice==1){
             addProducts();
          if(choice==2){
             addMembers();
          if(choice==3){
             addRentals();
          if(choice==4){
             Demo test = new Demo();
             test.setVisible(true);
       public static Connection getConnection(){
          try {
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          catch(java.lang.ClassNotFoundException e) {
             System.err.print("ClassNotFoundException: ");
             System.err.println(e.getMessage());
          try {
             con=DriverManager.getConnection(url,"","");
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
          return con;
       public static void addProducts(){
          Connection con = getConnection();
          String addProduct1, addProduct2;
          addProduct1 = "insert into Product values (110001, 'The Killers -  
          Sams Town', 5.00, 'G', 'CD', 2006)";
          addProduct2 = "insert into Product values (110002, 'Robbie
          Williams - Rudebox', 5.00, 'G', 'CD', 2006)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addProduct1);
             stmt.executeUpdate(addProduct2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public static void addMembers(){
          Connection con = getConnection();
          String addMember1, addMember2;
          addMember1 = "insert into Member values  
          (1234, 'Ann', 'Smyth', 'Upper Killult, Falcarragh, Co. Donegal', '(074)-
          9135210', '(087)-2030172', #5/11/85#, #5/12/06#)";
          addMember2 = "insert into Member values
          (2345, 'John', 'Murphy', 'Lower Killult, Falcarragh, Co.
          Donegal', '(074)-9135211', '(087)-2030173', #4/12/85#, #6/13/06#)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addMember1);
             stmt.executeUpdate(addMember2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public static void addRentals(){
          Connection con = getConnection();
          String addRental1, addRental2;
          addRental1 = "insert into Rental values (110001, 'The Killers - 
          Sams Town', 1234, 'Ann', 'Smyth', #9/01/06#, #9/10/06#, 'Yes', 2.00)";
          addRental2 = "insert into Rental values (120001, 'Mission
          Impossible 3', 2345, 'John', 'Murphy', #9/02/06#, #9/09/06#, 'No',
          0.00)";
          try {
             stmt = con.createStatement();
             stmt.executeUpdate(addRental1);
             stmt.executeUpdate(addRental2);
             stmt.close();
             con.close();
          catch(SQLException ex) {
             System.err.println("SQLException: " + ex.getMessage());
       public Demo(){
          super("Demo Test Frame");
          setSize(350, 200);
          comboBox = new JComboBox();
          comboBox.addItem("jdbc:odbc:VideoLibrary");
          qtm = new QueryTableModel();
          JTable table = new JTable(qtm);
          JScrollPane scrollpane = new JScrollPane(table);
          JPanel p1 = new JPanel();
          p1.setLayout(new GridLayout(3, 2));
          p1.add(comboBox);
          p1.add(new JLabel("Enter your query: "));
          p1.add(queryField = new JTextField());
          p1.add(new JLabel("Click here to send: "));
          JButton jb = new JButton("Search");
          jb.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                      qtm.setHostURL();
                      qtm.setQuery(queryField.getText().trim());
          p1.add(jb);
          getContentPane().add(p1, BorderLayout.NORTH);
          getContentPane().add(scrollpane, BorderLayout.CENTER);
    }//end class
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
       private static JTextField username=null;
       private static JPasswordField password=null;
       private static JButton button=null;
       public LogOn(){
          setSize(260,160);
          username=new JTextField(15);
          password=new JPasswordField(15);
          //JPanel pane=new JPanel();
          JLabel usernameLabel=new JLabel("Username: ");
          JLabel passwordLabel=new JLabel("Password: ");
          /*pane.*/add(usernameLabel);
          /*pane.*/add(username);
          /*pane.*/add(passwordLabel);
          /*pane.*/add(password);
          //setContentPane(pane);
          show();
          button=new JButton("Ok");
          add(button);
          button.addActionListener(new ButtonListener());
          JFrame frame=new JFrame("Welcome to Home Entertainment");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().add(new LogOn());
          frame.pack();
          frame.setVisible(true);
       private class ButtonListener implements ActionListener{
          public void actionPerformed(ActionEvent e){
             try{
                new Demo();
             catch(Exception ex){}
    import java.sql.*;
    import java.io.*;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.table.*;
    public class QueryTableModel extends AbstractTableModel{
       Vector cache; 
       int colCount;
       String[] headers;
       Connection db;
       Statement statement;
       String currentURL;
       public QueryTableModel(){
          cache=new Vector();
          try{
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          catch(Exception e){
             System.out.println("problem loading the driver ");
       public String getColumnName(int i){
          return headers;
    public int getColumnCount(){
    return colCount;
    public int getRowCount(){
    return cache.size();
    public Object getValueAt(int row, int col){
    return ((String[])cache.elementAt(row))[col];
    public void setHostURL(){
    String url = "jdbc:odbc:VideoLibrary";
    closeDB();
    try{
    db=DriverManager.getConnection(url,"","");
    statement=db.createStatement();
    catch(Exception e){
    System.out.println("Could not initialize the database.");
    e.printStackTrace();
    public void setQuery(String q){
    cache=new Vector();
    String s="select * from Product";
    try{
    ResultSet rs=statement.executeQuery(q);
    ResultSetMetaData meta=rs.getMetaData();
    colCount=meta.getColumnCount();
    headers=new String[colCount];
    for(int h=1;h<=colCount;h++){
    headers[h-1]=meta.getColumnName(h);
    while(rs.next()){
    String[] record=new String[colCount];
    for(int i=0;i<colCount;i++){
    record[i]=rs.getString(i+1);
    cache.addElement(record);
    fireTableChanged(null);
    catch(Exception e){
    cache=new Vector();
    e.printStackTrace();
    public void initDB(String url){
    try{
    db=DriverManager.getConnection(url);
    statement=db.createStatement();
    catch(Exception e){
    System.out.println("Could not initialize the database.");
    e.printStackTrace();
    public void closeDB(){
    try{
    if(statement!=null){
    statement.close();
    if(db!=null){
    db.close();
    catch(Exception e){
    System.out.println("Could not close the current connection.");
    e.printStackTrace();

  • Web based email program prevents access from email aggregator

    Hi all - I'm a fairly new BB user and have a problem that I need some help.  I have been using my BB Bold to access my U.S. Army webmail.  Recently I received an email from the system saying that access to email by aggregators such as Google mail and Blackberry will not longer be allowed because those systems store usernames and passwords on servers outside the control of the Army.  Apparently this is a cyber-security concern.
    The webmail will still allow IMAP and POP access so long as the username and password are not stored on external servers (such Microsoft Outlook).  I can not figure out a way to configure my BB to do this without storing my username and password on the BIS system.  Short of installing a third party application is there any way to access my Army email from my BB without storing my username and password on the BIS system?
    Thanks for your help!

    Hi and Welcome to the Forums!
    Nope...BIS is a conduit that pulls from your POP/IMAP account and then pushes new stuff to your BB. If there is nothing to push, it does nothing to interrupt your BB. To do all of that, it must know your credentials for your POP/IMAP service...hence the fact that your ID and password must be stored inside of your BIS configuration. That's how it works.
    The only other thing I can think of for you would be the webmail interface -- if they have one, you could use the BB Browser to access that email account rather than go through BIS.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Trouble loading a web-based program (7100i)

    My company is starting to use a new web-based timeclock program. Prior to launching to my engineers who will have to occasionally access it to clock in/out I was trying to give it a trial run and I keep running into a problem.
    Using the Blackberry I entered the web-address in and the login page loads perfectly then after entering in the login credentials & clicking the trackwheel the screen shows that the phone is requesting the information and then shows on the bottom of the screen that it is loading but then the screen comes back to the login screen. My login credentials are still listed but nothing else ever comes up.  I have tried configuring the browser (Blackberry browser).  I even changed the emulation mode from Blackberry to Microsoft IE which helped a little because it appears another page/screen loaded up I do not see the link/button needed for one to clock in/out.
    Unfornately, I hardly ever use the internet on my Blackberry so I am not sure what could be causing this. Can someone help me out?
    FYI - I am on a company BES server.
    Thank you in advance, D~

    it depends how the page is designed. try checking all options present under browser config for java, style sheets etc and general properties as well.
    Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved.

  • I need  Web based Dynamic Reporting tools

    Hi,
    I need a Web based Dynamic Reporting tool.
    I have to user oracle products and this reporting tools must support OLAP and Data Warehousing.
    thanks,

    Hi Shima,
    Let me quote from Oracle Reports website:
    "Oracle Reports is Oracle's award-winning, high-fidelity enterprise reporting tool. It enables businesses to give immediate access to information to all levels within and outside of the organization in an unrivaled scalable and secure environment. Oracle Reports consists of Oracle Reports Developer (a component of the Oracle Developer Suite) and OracleAS Reports Services (a component of the Oracle Application Server)."
    Since you need a web-based reporting tool, this is what is available with Oracle Reports:- you cannot design reports on the web, but you can use Oracle Reports Developer to design high quality reports that are suitable for viewing on the web.
    Oracle Reports support OLAP as a data source.
    From your requirements, it seems that it might be worthwhile for you to check out Oracle Discoverer which is again a powerful reporting and analysis tool. Oracle Discoverer is more suitable for ad-hoc reporting and web-based analysis of data by the end-users:
    http://www.oracle.com/technology/products/discoverer/index.html
    Navneet.

  • E3000 guest network web-based setup

    I replaced an old router with E3000. Since I already had a number of clients connected, I used the web-based setup program to duplicate the old routers configuration. Now it seems there's no easy way to manage (rename, e.g.) the guest network from the web-based setup program. To use Linksys Connect, I need to go back to square one on the router and redo the whole network setup by resetting the router to its factory defaults and then doing everything thru Linksys Connect. Is there some way to get at guest settings thru web-based setup?
    Thanks

    Right. I went ahead and set it up using the built-in menus. I set the SSID to something new, passowrds, etc. Only after I had everything running did I turn to the guest network. It is now called ROUTER-GUEST (not related to my SSID, btw) and has an unknown password.  So it appears that if I want to use the guest network, I must do the whole thing over from square one. Just brilliant to have the menus built in to the router be unable to access some of the features that are available in it.

  • Web-based installer

    I'm looking to create a Web-based installer program, but have absolutely no clue how it can be implemented.
    Would you guys shed me some light on this :)

    I think WebStart is what you're looking for (although we may just be talking over each other here). WebStart downloads a Java program to the client via a server but doesn't necessarily have to be a client/server type app. It's pretty slick since it can be configured to check for new version of the program and update it as needed. Try installing WebStart and playing around with some of the programs yourself.

  • How to migrate from forms to web based application

    Hi,
    I did a form for Oracle applications, but client need a web based form for this application how can i migrate this to web based form. If it is possible can u give me suggestion how migrate.
    Kishore B

    Not sure if that's possible, as developing forms for Oracle Applications requires the use of TEMPLATE.fmb to start with, and the use of certain standards to adhere to the look and feel of the applications. Review the Oracle Applications Developer's guide for more details.
    What You may do now is to upload the form to the Application Server and compile it to the adequate directory $PRODUCT_TOP/forms/[LANG], register the form, associate to a function and use it in a menu to see it trough Oracle Applications standard interface, but it may show a very different L&F and not all standard functionality may be available. With the Dev Guide's on hand, apply required changes and test Your form in the application.

  • I need to run web based Microsoft CRM. I open it in Safari but the program does not respond. I suppose it has to do with Flash or ActiveX. Can someone help?

    I need to run web based Microsoft CRM. I open it in Safari but the program does not respond. I suppose it has to do with Flash or ActiveX. Can someone help?

    What does the product developer say about system requirements? If it needs to be run from within Internet Explorer then you'll need to find a way to run Internet Explorer. Boot Camp or VM installation of Windows would be two options.
    But first check the product requirements.

  • How to start JDBC program from web.

    Okay I have researched this alot on how you are suppose to connect to a database using JSP and all the example just show how to print the entire database. What I need to do is take a JDBC program I have written and make it run on a web page. How can I call the program to run on a web page. The JDBC program will search,update,add information into a database but how do I get the JDBC program run on a web server. I am a newbie in JSP.

    Then could someone tell me what is the point in learning JDBC if you can't use it for web applications? Could someone then tell me which to learn in order for me to implement using my database on the web. Should I learn how to do it as a servlet or in JSP. Which is going to require less time to learn. I am kinda in a time crunch on this one. I would really like to learn both and I will probably go back and do that but I don't have time to learn both so any advice would be helpful. Thank you for you time.

Maybe you are looking for

  • Arrows in PS CS6 & CC?

    I'm missing something here. I could make an arrow in Photoshop in PS CS5, and I know enough in PS CC to use the option-bar cogwheel icon (instead of the freeform shape tool) for arrows, but there's a step I've either forgotten or the sequence of step

  • G5 DVD burner error message? Help please?

    I get this error message when I try burning a 1gb quicktime movie to dvd on my pre installed standard burner. Thanks in advance the link below is a screenshot of the error http://www.darkstargraphics.com/dvd_message.gif Im at a loss and ready to by a

  • Hi I dont really want to start a discussion but would like some quick advice please!

    I m using a imac 28inch, and recently been working with the creative cloud. my main problem is working with dreamweaver, finding after awhile that if i move the page about it leaves a strobic static effect after , leaving the screen difficult to work

  • How to see who/what is on my router.. please?

    Thanks for looking. I would like to view what ips / ssid's are on both sides of my router. for example, the LAN side and the WAN side. i'd like to do this for both the existing AE "n" and "g" Thanks tons Tom

  • Is there away to authenticate the iPad to Wireless without a username and password? (i.e. Device Authentication)

    I am contracting for a college and they want to automatically configure 30 iPads for use on their enterprise wireless network.  Current wireless settings are 802.1x using PEAP MSCHAPv2.  Users authenticate using their Active Directory accounts.  They