| Author |
Passing Table values to action class
|
Vijay jai Singh
Greenhorn
Joined: Jan 07, 2009
Posts: 26
|
|
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
Joined: Oct 27, 2009
Posts: 336
|
|
|
requirement is not clear .Be more detailed... how are values set in the table??
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26489
|
|
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.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Passing Table values to action class
|
|
|