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 Would I access the checked row of a table in UI into my Action Class?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,
I'm developing an application in Struts where I'm displaying data from a table in the database inside the <table> tag in my jsp. I also am displaying a checkbox prefixed to each row in the jsp, so that a user would check a checkbox, upon which the checked row would become editable, and then edit the data in the table. On clicking the 'Save' button, the data would be captured and populated as a list of Value Objects. I'm displaying data from the database in <logic:iterate> in my jsp. I'm able to determine which row was checked in my action form, my problem is how would I determine which row(s) were checked in the action class and how would I access the data in those rows in the Action class? I'm keenly awaiting help on this.
Thanks in advance.

 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please read carefully what it says at the top of this forum.

This forum is intended for questions and comments about the web sites www.javaranch.com and www.coderanch.com.
It is not for questions about the Java language - that's what all our other forums are for.



Please take care to post in the proper forum.
Locking.
 
    Bookmark Topic Watch Topic
  • New Topic