I mean I have a
JSP with a table containing only a header
The rest of the rows are to be obtained from from the action class and set them in the table...
There are two things to be done here in same jsp...
1) If data is present in DB then I already have an object containing values for table...I just need to put them onto UI but it's linked with 2
2) if there are no data on DB i need to add rows here...so I used a JS to add rows dynamically to UI and DB(this is done)
My problem is with 1 here .I already have a JS to add rows to table... Now am confused how to put the data obtained from DB to table without disturbing the flow!