permaculture playing cards*
The moose likes Struts and the fly likes Dependent drop down boxes with javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dependent drop down boxes with javascript?" Watch "Dependent drop down boxes with javascript?" New topic

Dependent drop down boxes with javascript?

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
I am new to Struts. I need to implement dependent drop down boxes.

it's not working for Dependent drop down boxes 2nd state drop box is not properly working ..

2nd drop down box not orderly displayed ...
please help any one

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

Your javascript code submits the form. It doesn't make the second select dependent on the first.
Struts 2 has a doubleselect tag. If you aren't maintaining legacy code, I'd recommend you use Struts 2. It is much easier to work with than Struts 1.x.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Dependent drop down boxes with javascript?
Similar Threads
JspException: Failed to obtain specified collection for Struts:optionscollection
please help "javax.servlet.jsp.JspException: Failed to obtain specified collection"
Cannot find bean in any scope
Problem with Struts html:select
Submitting hidden values on the form with onSelect option