Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Servlet and Dynamic List box  RSS feed

 
srilatha sri
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.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!