File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Java Servlet and Dynamic List box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java Servlet and Dynamic List box" Watch "Java Servlet and Dynamic List box" New topic
Author

Java Servlet and Dynamic List box

srilatha sri
Greenhorn

Joined: Aug 14, 2001
Posts: 1
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16020
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Servlet and Dynamic List box