This week's book giveaway is in the Android forum.
We're giving away four copies of Learning Java by Building Android Games and have Jean-Marcel Belmont on-line!
See this thread for details.
Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Link between DAO, JSP and JDBC  RSS feed

 
Ranch Hand
Posts: 444
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a table named Users in a Derby database , I created DAO class file and I linked DAO and JDBC.

I created also a JSP file:



My web application was created using Java EE 6 and NetBeans 8.2.

My DAO file works fine, I inserted one record in a table.

My question is:

How can link my DAO file , JDBC file and JSP file?

I also have  a response.jsp  file.

When I inserted my values from interfaces to be saved to my table.

My DAOSample is:




Must I create a bean object?

Thnaks a lot.

 
author & internet detective
Marshal
Posts: 38650
675
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana,
Do you have a servlet that forwards to the JDBC? That's the typical place to call the DAO.
 
Dana Ucaed
Ranch Hand
Posts: 444
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I haven't.

I will create.

Thanks Jeanne.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!