• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

insert values into database from dynamically added rows

 
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
using the following code i am dynamically adding rows


now i want to insert this dynamic added field data into the database using hibernate.
so i want to know how can i do that.
 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic