aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Passing Table values to action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Passing Table values to action class" Watch "Passing Table values to action class" New topic
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Table values to action class