This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to got selected value only?