• Post Reply Bookmark Topic Watch Topic
  • New Topic

Link between DAO, JSP and JDBC  RSS feed

 
Dana Ucaed
Ranch Hand
Posts: 405
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.

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37393
531
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: 405
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!