This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 drop down - unique values" Watch "struts2 drop down - unique values" New topic
Author

struts2 drop down - unique values

M Kethi
Greenhorn

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
Author
Rancher

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
 
Similar Threads
Hibernate query help
problem with struts2 drop down
how to show same row for each click on a link
converting sql union query into java
Dropping Unique Key