This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to got selected value only?
 
Similar Threads
how i get selected list data
Custom Dialog box
replacing parts in Files
how to get selected value
how to get selected value