Google Blogoscoped


[OT] Dynamic Rows in HTML ,insert to database

Suresh S [PersonRank 10]

Sunday, August 23, 2009
11 years ago3,191 views

I needed a solution , to implement adding dynamic HTML table rows and filling them with details , the rows should then be added to database. what is the best way to implement this in jsp.The jsp page on load get the data from the database and creates rows, i can edit the row values and it should be updated,also new rows can be inserted in front end which should also be saved in jsp.

Philipp Lenssen [PersonRank 10]

11 years ago #

I would think you need these components interacting:
- An HTML page loading the basic div's and references
- A CSS stylesheet for all the layout
- A JavaScript page using Ajax to coordinate the data between the client and the server
- Some DOM handling in the JavaScript to display the HTML (creating nodes, updating nodes, grabbing input values)
- A receiving server-side page (e.g. Java in your case) to accept the Ajax communication and return JSON or XML

Because your question at that level is very broad, you might have a harder time finding answers at certain non-paid Q&A site (here's a neat paid site, but there may be better ones for programming questions specifically: You could pay a programmer to work it out for you, e.g. consult you, or if you can manage to break down your question into smaller parts – "What is AJAX" – to google for it. Then when you hit a wall with one of the smaller parts, you could phrase that specific question at

Suresh S [PersonRank 10]

11 years ago #

Thanks philip for a quick technical detail.

This thread is locked as it's old... but you can create a new thread in the forum. 

Forum home


Blog  |  Forum     more >> Archive | Feed | Google's blogs | About


This site unofficially covers Google™ and more with some rights reserved. Join our forum!