aspose file tools*
The moose likes Struts and the fly likes how to get selected value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get selected value" Watch "how to get selected value" New topic
Author

how to get selected value

Raj
Greenhorn

Joined: Dec 05, 2007
Posts: 17
Hello,
This is my code:

ArrayList<PS_Department> UsersDept = serverFunc.adminLib.GetDepartmentsByCurrentUser();
int[] selectedDepts = new int[UsersDept.size()];
int i = 0;
for (PS_Department dept : UsersDept) {
selectedDepts[i]= dept.getID();
i++;
}

theForm.setSelectedDeptIds(selectedDepts);

here in(selectedDepts)i got all the department value As a selected value.but i want only those selected value which is selected by user.how can i got those selected value.
Please help....
Nick Williamson
Ranch Hand

Joined: Jan 06, 2007
Posts: 73
you realize that one post is sufficient, if you post many of the same questions in the same forum people are less likely to help you.
 
Consider Paul's rocket mass heater.
 
subject: how to get selected value