aspose file tools*
The moose likes Struts and the fly likes Fill An Option with data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Fill An Option with data" Watch "Fill An Option with data" New topic
Author

Fill An Option with data

N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
Hello to all. I am using Struts for my project. I have a form with two drop-down-lists. I want to fill the second list according to selection in first one. Can anyone help me achive this please. Its an urgency.

Thanx in advance,

Niranjan Nanda
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
On select box 1, set onchange = to a javascript function that submits the form. The action reads the selection made and retrieves the results from the database and stores them in the request and returns the user to the jsp. Back on the jsp, the second select box detects the inclusion of the results and populates the options.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fill An Option with data