Bookmark Topic Watch Topic
  • New Topic

Interaction of jdbc using Servlets  RSS feed

 
Avinash Nethi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
How can interact jdbc task in servlet application can you please give me an example
My task is i have to enter three fields in a form namely empid,name,mobile with submit button and whatever we enter there the record must have inserted in the database
 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,
I think you are already posted the same question. I had answered the question. See that.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Report post to moderator
Create a DAO class which does the DB interaction tasks independently. Get it to work first as a Java Application. Finally just import/call it in your Servlet.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!