• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing Table values to action class

 
Vijay jai Singh
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of my web page i have HTML table. This table will have 0 or more rows and each row has 3 column.

it is like this:



i want to transfer values of columns to Action class.

is there any way to
1) get number of rows in table
2) transfer values using javaScript and how will i get in my action class.

Thanks
 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
requirement is not clear .Be more detailed... how are values set in the table??
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijay,
1) You can look through the DOM using JavaScript. It's easier if you use a library like jQuery to do so.
2) You can transfer the values to a hidden form field and submit that in your form.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic