I wish to insert values multiple times in the same table using a jsp page(i.e. multiple rows at once).How should i go about doing it?
Multiple times insertion in the same table ... implies that multiple rows data is to
Collapse
X
-
1.) Get the positions (x,y) from database (or from whereever). Do this in a servlet (no JSP page).
2.) create the table as HTML in the JSP page. Or better, especially if the table is already created and you do not want to touch this code, just create a Javascript snippet that puts the data as JSON array, then you use JQuery on clientside to update the table and replace the values according to the given positions in the JSON data.
Comment