This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to store table row values in DB  RSS feed

 
Raveesh Lawrance
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having one jsp file that contains table with 3 row datas. i want to collect all the table data values and stroe it in DB while clicking the submit button. how to do that... please help me.... Thanks in advance....
 
Surya Kant
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to manually get all values and append it to the url before submitting.
It would be great if you post your JSP.We can suggest something else after seeing the JSP
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a DAO class which does the save task using JDBC.
Create a servlet class which does the request processing task and invokes the DAO class.
Let your JSP submit to that servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!