• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

struts2 drop down - unique values

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.
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.
This tiny ad is suggesting that maybe she should go play in traffic.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic