permaculture playing cards
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get selected value" Watch "how to get selected value" New topic

how to get selected value


Joined: Dec 05, 2007
Posts: 17
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();


here in(selectedDepts)i got all the department value As a selected value.but i want only those selected value which is selected by 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.
It is sorta covered in the JavaRanch Style Guide.
subject: how to get selected value