This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Checkbox using display tags(urgent please help) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Checkbox using display tags(urgent please help)

Swathi Ram
Greenhorn

Joined: Sep 18, 2007
Posts: 27
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....
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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..


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Checkbox using display tags(urgent please help)
 
Similar Threads
fieldValue not working after upgrade to Struts 2.0.11
maintin checkbox stauts during paginatin(dispalytag)
displaytag help
Problem with sorting using display tag
checkbox using displaytag