It's not a secret anymore!
The moose likes Struts and the fly likes Dynamic dropdownlists in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic dropdownlists in Struts2" Watch "Dynamic dropdownlists in Struts2" New topic

Dynamic dropdownlists in Struts2

Sneha Durvasula

Joined: Sep 26, 2013
Posts: 10

I am working with struts framework using jsp. I have 3 drop down lists in my jsp. Based on the selected value in the first drop down list i need to enable the second drop down list with some options and similarly the third one I need to enable based in the second menu..The options need to be the files present in a folder whose path will be specified..Can someone help
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Struts has a tag that has two select lists, the first of which determines the contents of the second.
Since that doesn't fit your needs, your best bet is to study some examples and extend them. Since this doesn't have much to do with Struts, you can get help in our JavaScript forum

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Dynamic dropdownlists in Struts2
It's not a secret anymore!