This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Fill An Option with data
It's not a secret anymore!