wood burning stoves*
The moose likes Struts and the fly likes How to got selected value only? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

How to got selected value only?

Raj
Greenhorn

Joined: Dec 05, 2007
Posts: 17
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
STOP POSTING THE SAME QUESTION OVER AND OVER AGAIN
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to got selected value only?
 
Similar Threads
replacing parts in Files
how i get selected list data
how to get selected value
Custom Dialog box
how to get selected value