This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSP and the fly likes combo boxes and iterator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

combo boxes and iterator

alex pandiyan
Greenhorn

Joined: Aug 25, 2004
Posts: 10
Hi,
I have 3 combo boxes in jsp page.
If user selects 3 diff values in combo and clicks
submit button,i have to display values.
Scenario;
combo box:1 country
combo box:2 state
combo box:3 city
If user selects "state1" in 2nd combo,"all cities" in 3rd combo,
i have to display in such a way that cities in state1-1 column and cities not in state1 in another column on the same jsp.
Am having the values of combo boxes in 3 arraylists.
How to query them and display results?
Will using an iterator would be effective?
Any validation sample code would be useful.
Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63031
    
  69

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Since the topic you posted in the Servlets forum has already gotten responses, please continue any discussion of this topic here.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: combo boxes and iterator
 
It's not a secret anymore!