Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dynamic row in javascript by using list of beans  RSS feed

rajan Kayarohanam
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, 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!