• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to update list with dynamically added row values ?  RSS feed

 
Raminder Singh
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Help needed for updating an list in jsp with values added as dynamic row.

detail: I have a table displaying data from list. It displays 2 rows. I have a button which on clicks added one more row ..blank row.. in which data is added. now on submit, i need to update list.

thanks.
 
kal til
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's not possible in struts1, as it is very easy to manage in struts2.

In struts1, better add buttons after every row like 'add, delete,edit' and pass the id value to struts action and update the domain objects.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kal til:
it's not possible in struts1, as it is very easy to manage in struts2.

In struts1, better add buttons after every row like 'add, delete,edit' and pass the id value to struts action and update the domain objects.


The original poster said nothing about Struts.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raminder Singh,
How are you adding the row?
Are there form fields in the row?
If so, what names are given to these form fields?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!