wood burning stoves 2.0
The moose likes Struts and the fly likes struts2 drop down - unique values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 drop down - unique values" Watch "struts2 drop down - unique values" New topic

struts2 drop down - unique values

M Kethi

Joined: Aug 01, 2008
Posts: 15

I have a List list1 of objects "test" - type
test object has id1 and id2 .

I will need to populate 2 drop downs
drop down 1 with id1 and drop down 2 with id2.

am able to do it with listValue.

the problem is id1 can be same value on multiple objects of the list and same with id2

so, how do i show unique values instead of repeating the same value..

also, if i select id1 from drop down 1 then the respective values of id2 on drop down 2 should be populated and vice versa..

not sure how to accomplish this. any help is greatly appreciated.
David Newton

Joined: Sep 29, 2008
Posts: 12617

I'm not really sure what you're asking.

But it doesn't sound like it's specifically related to Struts yet.
I agree. Here's the link: http://aspose.com/file-tools
subject: struts2 drop down - unique values
It's not a secret anymore!