File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get selected value" Watch "how to get selected value" New topic

how to get selected value


Joined: Dec 05, 2007
Posts: 17
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();


here in(selectedDepts)i got all the department value As a selected value.but i want only those selected value which is selected by 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.
I agree. Here's the link:
subject: how to get selected value
It's not a secret anymore!