wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

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
 
Similar Threads
arranging display in a panel with grid bags...
Help me to have a sortable table in my html profile!
getParameterValues []
2D Array or linked list
Displaying Table