Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Database driven Java Program

    i want to create an application in java. and i want to use a database.
    somewhat like a network program where the database is in one server.
    i only know basic java program. Can applets be programmed to use database?
    what database will work best for java?
    can anyone give me some nice tutorial site on java which uses database.

    Hope someone would help me.
    Thanks...

  • #2
    New Coder
    Join Date
    Oct 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Java servlets or JSP can access server side databases. Java applets cannot access server side databases. They are client side programs and most databases are server side.

    A Java applet written as a main program maybe able to access a local database, however I have not tried this combination.

    Finally, I do not know of any good tutorial sites but I would try Google.

    Q...

  • #3
    New Coder
    Join Date
    Apr 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for that information QiSoftware.

    Im just wondering about JSP. I know a little bit on PHP.
    In php, i used form elements to get the get data from the user like textfield,checkbox.

    In JSP, do i still use the form elements in getting datas from the user?
    or the buttons and textfields used in JSP are those built GUI components (JButton, JTextField)?
    Can someone give me a link on a nice JSP tutorial.
    Thanks..

  • #4
    New Coder
    Join Date
    Aug 2006
    Location
    UK
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you would be best going down to your local library and getting out a book or three on JSP and / or J2EE.

    What you're asking is too complicated to be answered by a simple tutorial!

  • #5
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    Quote Originally Posted by kramx7
    Thanks for that information QiSoftware.

    Im just wondering about JSP. I know a little bit on PHP.
    In php, i used form elements to get the get data from the user like textfield,checkbox.

    In JSP, do i still use the form elements in getting datas from the user?
    or the buttons and textfields used in JSP are those built GUI components (JButton, JTextField)?
    Can someone give me a link on a nice JSP tutorial.
    Thanks..
    You don't need to go to the library. The tutorialson JSP will help, just use google.

    You still get elements from the form and then depending on how you do it (whether you handle the post through the jsp or through a servlet) depends on how it's handled.

    JSP is more powerful then PHP for various reasons (that include the java library), but php is more...intuative.
    "To iterate is human, to recurse divine." -L. Peter Deutsch

  • #6
    New Coder
    Join Date
    Apr 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Aradon View Post
    You don't need to go to the library. The tutorialson JSP will help, just use google.

    You still get elements from the form and then depending on how you do it (whether you handle the post through the jsp or through a servlet) depends on how it's handled.

    JSP is more powerful then PHP for various reasons (that include the java library), but php is more...intuative.
    Thanks for the help guyz, I think i have to buy a book on Java.

    I have another question, can I still used the JButons or JTextfield when i'm going to program in JSP or servlets? I'm just concern on the user events of the GUI components. Because i don't like to used javascript.

    I hope someone would still help, answer me .
    Thanks.
    Last edited by kramx7; 09-07-2006 at 10:28 AM.

  • #7
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    Quote Originally Posted by kramx7 View Post
    Thanks for the help guyz, I think i have to buy a book on Java.

    I have another question, can I still used the JButons or JTextfield when i'm going to program in JSP or servlets? I'm just concern on the user events of the GUI components. Because i don't like to used javascript.

    I hope someone would still help, answer me .
    Thanks.
    No, since the JSP page is server side there are no client side buttons such as the JButton or JTextField. Basically you're using html and jsp. The servlet is like your backbone that allows for safe database management as well as various other useful things.

    Even if you were using php you'd still have to use forms with html. You could get around validating through javascript if you wanted to, it's just eaiser to do it with javascript rather then sending out to the server for validation.
    "To iterate is human, to recurse divine." -L. Peter Deutsch


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •