on jsp page i have created table with dynamically added rows now i want to insert the data from dynamic row field into database.
how would i get the ids of those dynamically created rows to insert into database using hibernate
Megha Singhal wrote:on jsp page i have created table with dynamically added rows now i want to insert the data from dynamic row field into database.
how would i get the ids of those dynamically created rows to insert into database using hibernate
can you provide code so i cant imagine what are you trying to achieve
what is the issue here? are you asking for code to insert data in table? I think no one can provide that.
If you asking for how to get there then do the following.
I assume lazyRowAdd.web maps to some server side method in action/class/servlet so you need to read values from request/form in this method and construct your model (hibernate object) and pass to data layer to save it.
All desirable things in life are either illegal, banned, expensive or married to someone else !!!