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

Checkbox using display tags(urgent please help)

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Thank you for responding . But still i'm getting the count of selected check boxes. I'm not getting the value of the officeid.Here is my jsp

<s:set name="offices" value="offices" scope="request"/>
<display:table name="offices" requestURI="" pagesize="${row}" sort="list" id="jobResults" class="candSearchResults" >
<display:column><s:checkbox name="checked" fieldValue='%{office.officeId}'/></display:column>
<display:column property="office.officeId" title="ID" sort="true"/>
<display:column property="office.officeName" href="testing.action" paramId="officeStatus" paramProperty="office.officeId" title="Name" sort="true"/>


This is my action class where I want selected offices ids

private String[] checked;
ArrayList checkBoxes=new ArrayList();
for (int i=0; i<(checked.length); i++) {
checkBoxes.add(checked[i]);
System.out.println("list of office ids "+checkBoxes.get(i));
}
System.out.println("Size of check box" +checkBoxes.size());

Here I can print the size of check boxes but not the office ids.

Please help me....
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Swathi,

Please do not create new threads on the same question. If you have additional information on a question or topic, please put it in the original thread.

I'm closing this thread, but any who wish to respond may do so in this thread..
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic