Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-01-2006, 09:14 AM   PM User | #1
kramx7
New Coder

 
Join Date: Apr 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
kramx7 is an unknown quantity at this point
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...
kramx7 is offline   Reply With Quote
Old 09-01-2006, 03:56 PM   PM User | #2
QiSoftware
New Coder

 
Join Date: Oct 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
QiSoftware is an unknown quantity at this point
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...
QiSoftware is offline   Reply With Quote
Old 09-04-2006, 12:25 AM   PM User | #3
kramx7
New Coder

 
Join Date: Apr 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
kramx7 is an unknown quantity at this point
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..
kramx7 is offline   Reply With Quote
Old 09-04-2006, 01:20 PM   PM User | #4
Phill
New Coder

 
Join Date: Aug 2006
Location: UK
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Phill is an unknown quantity at this point
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!
Phill is offline   Reply With Quote
Old 09-04-2006, 06:58 PM   PM User | #5
Aradon
Moderator-san


 
Aradon's Avatar
 
Join Date: Jun 2005
Location: USA
Posts: 734
Thanks: 0
Thanked 20 Times in 19 Posts
Aradon is on a distinguished road
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
Aradon is offline   Reply With Quote
Old 09-07-2006, 09:26 AM   PM User | #6
kramx7
New Coder

 
Join Date: Apr 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
kramx7 is an unknown quantity at this point
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 09:28 AM..
kramx7 is offline   Reply With Quote
Old 09-07-2006, 03:26 PM   PM User | #7
Aradon
Moderator-san


 
Aradon's Avatar
 
Join Date: Jun 2005
Location: USA
Posts: 734
Thanks: 0
Thanked 20 Times in 19 Posts
Aradon is on a distinguished road
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
Aradon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:31 PM.


Advertisement
Log in to turn off these ads.