File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

combo boxes and iterator

alex pandiyan

Joined: Aug 25, 2004
Posts: 10
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.
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

Joined: Jan 10, 2002
Posts: 63532

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: combo boxes and iterator
jQuery in Action, 3rd edition