• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to use select tag as filter (like: parent child)?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to use <html:select> tag as a filter between two select tag.
I want two list boxes in which
first act as a parent to the other list box.

It means
for example one list box contains countries and the other list box contain their respective cities.
So,when i click first list box, like: "India" it should display "delhi,mumbai,kolkata,chennai,bangalore,etc".
or if i click "USA" it should display "Washinton dc,newyork,new jercy,california,las vegas,etc".
Whether i need a backend support also for this.


i want to do this in struts1.
Any solution is highly appreciable.
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There is no build in provision for this feature in struts but you can do this programatically.
ummmm like,

on change of country dropdown submit form and in action change city dropdown bean list according to country you had selected.
 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try double select. But it is for struts2. May be you can look into its source code.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic