Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Java Servlet and Dynamic List box

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 4 list boxes. listBox 1 is populated from the database(Oracle). I select an item from it and then
listbox 2 is populated with related data matching listbox 1 item I chose (Just like the Country and Cities example ). I select an item from Listbox 2 and populate listbox 3 and listbox 4 with related data matching listbox 2 item. How do I write this in a java servlet program using HTML. After I select all the data in the different listboxes, I have to do a get and pass it to another servlet program that processes the data.
Need to use Servlet and HTML embedded in it. I went through the JSP example but now in this program I have to use 2 selects to populate the listboxes.
 
Saloon Keeper
Posts: 22490
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last time I did something like that, I put all the listboxes in a Java applet and used URLConnection to get the updated listbox data.
 
What are you doing? You are supposed to be reading this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic