A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
struts2 drop down - unique values
Joined: Aug 01, 2008
Oct 01, 2010 10:06:15
I have a List list1 of objects "test" - type
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.
Joined: Sep 29, 2008
Oct 01, 2010 11:13:21
I'm not really sure what you're asking.
But it doesn't sound like it's specifically related to Struts yet.
It is sorta covered in the
JavaRanch Style Guide
subject: struts2 drop down - unique values
problem with struts2 drop down
how to show same row for each click on a link
Dropping Unique Key
converting sql union query into java
Hibernate query help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014