Meaningless Drivel is fun!*
The moose likes Struts and the fly likes How to transfer a dynamic table value ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to transfer a dynamic table value ?" Watch "How to transfer a dynamic table value ?" New topic
Author

How to transfer a dynamic table value ?

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
Hi All,

I am using struts. I have a table in the jsp page which is dynamically populated.
How can I transfer the table value to action class.

The ActionForm is not getting populated with the dynamic value. So I can not get the value in the Action class.

Please suggest what is the standard way to get the table value.


Thanks,
Kousik


Thanks in Advance,
Kousik
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

You'll either have to introduce <input type="text" disabled="disabled" /> (the disabled is to disallow users to edit the values) in your table cells and put that table in a form for the values to be submitted to the server. Or you can put hidden fields in your page and populate them with the required values. The text in a normal html <table> are not submitted to the server...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to transfer a dynamic table value ?
 
Similar Threads
Passing parameter value from jsp to action class
How can i add the 2 dimension matrix data and dispaly all the numbers.
create dynamic table in struts application
retreive the value
settin a value in action class to html table cell...