A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
How to got selected value only?
Raj
Greenhorn
Joined: Dec 05, 2007
Posts: 17
posted
Dec 13, 2007 00:07:00
0
Hi,
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++;
}
here
selectedDepts[i]=dept.getID();
Return me all the value as a selected value.But i want only those value which is selected.
how to got?Please help.
Nick Williamson
Ranch Hand
Joined: Jan 06, 2007
Posts: 73
posted
Dec 13, 2007 00:11:00
0
STOP POSTING THE SAME QUESTION OVER AND OVER AGAIN
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: How to got selected value only?
Similar Threads
replacing parts in Files
how to get selected value
how to get selected value
Custom Dialog box
how i get selected list data
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter