• 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

struts tag

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to display a list of files and a check box for each file.
collection eFiles of tVForm below has a string attribute ("fileName") and a boolean attribute ("selected")

when user checks few check boxes and clicks on "Delete" button, i should be able to identify them in my action class using selected attribute set to true.

Here is my code in jsp using displaying tag


<display:table name="sessionScope.tVForm.eFiles" requestURI="/cleanTableExtraction.do"
id="rows" pagesize="50" class="table">

<display:column property="fileName" title="FileName" />
<display:column title="Select" >
<html:checkbox name="rows" property="selected"></html:checkbox>
</display:column>
</display:table>
<html:button onclick="fnDeleteFiles();" value="Delete" />

</display:table>


i guess i am missing somewhere with the usage of checkbox inside <display:column>. could some please help me with this?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic