Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 drop down - unique values

 
M Kethi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure what you're asking.

But it doesn't sound like it's specifically related to Struts yet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic