• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to transfer a dynamic table value ?

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
reply
    Bookmark Topic Watch Topic
  • New Topic