wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
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.
 
 
subject: how to get selected value
 
Similar Threads
how to get selected value
JTabbedPane.getSelectedIndex
How to got selected value only?
pre-select in option
how i get selected list data