Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic row in javascript by using list of beans

 
rajan Kayarohanam
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
i've a issue. i've a JSP page where in there are 2 rows of dropdown list as one column and input text as the other. like this by default there are 2 rows.
Now i've already written a JS function for adding and removing a new row below the existing row. now the issue is i've to take the values of the dynamically created rows to my action as a list till my command class to save in DB.
The approch i've followed is by having a bean which will consists of id,val and percent with getter and setters. and this bean as a list in my form in a list variable.

i'm trying to create a dynamic row with the property of list.bean.property, so that when i save my dynamically created row will have the values in the bean property.
ex. "list[0].somebean.someid".....
this is my approach but i'm not able to procees further... could somebody help me out!!!

Thanks in Advance.
KMR
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic