Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
prakash. rajeev
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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.
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • 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.
 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try double select. But it is for struts2. May be you can look into its source code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic