User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 329,846 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,667 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 7466 | Replies: 23 | Solved
Reply
Join Date: Jan 2008
Posts: 29
Reputation: electron33 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
electron33 electron33 is offline Offline
Light Poster

Re: How to Connect MySQL from JSP Page

  #21  
8 Days Ago
Sorry. Peter_budo has absolutly right. JSP has the presentation and Servlet has the logic.
Reply With Quote  
Join Date: Aug 2007
Posts: 67
Reputation: Kusno is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster in Training

Re: How to Connect MySQL from JSP Page

  #22  
8 Days Ago
Originally Posted by electron33 View Post
This class is the JSP. JSP is an extension of Servlet. Simply told. If you see a few pages up on this article you see how to create a connection in JSP. But as i already had sead. Don't use connection or other business related code inside JSP. It makes it more difficult to read Tags and Java code. Move the Connection and Query code down in a DAO layer and use Servlet class as controler. Put the data you want into a JavaBean and put it into Request or session. Get it back in the JSP page and view it. If you need help in how to implement it give me a reply


Dear Mr. Electron33,

Yes, I want to know how to implement it.

Please...
NEVER NEVER NEVER GIVE UP
Reply With Quote  
Join Date: Jan 2008
Posts: 29
Reputation: electron33 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
electron33 electron33 is offline Offline
Light Poster

Re: How to Connect MySQL from JSP Page

  #23  
7 Days Ago
Here is an example of how I have done it so far. It is build in Netbeans 5.5
Attached Files
File Type: zip DatabaseConnection in JSP.zip (1.69 MB, 52 views)
Reply With Quote  
Join Date: Aug 2007
Posts: 67
Reputation: Kusno is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster in Training

Re: How to Connect MySQL from JSP Page

  #24  
7 Days Ago
Dear Mr. Electron33,

Thanks a lot for your help.

Kusno.
NEVER NEVER NEVER GIVE UP
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Marketplace (Sponsored Links)
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC