File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Dynamically Allocate Array lists to options in a dropdown for struts JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Dynamically Allocate Array lists to options in a dropdown for struts JSP

Vertika Solanki
Greenhorn

Joined: Mar 12, 2010
Posts: 10
The situtation is ...
When user selects a value from Dropdown 1. Then depending on the value selected another dropdown should be populated from 1 of 2 diffrent Araaylist in struts form.

I'm absloutely naive at AJAX. I don't know how AJAX will work here.

The deciding dropdpwn is


The one that needs to be set is


I tried hiding and showing them as required .


but when the form is submitted it doesn't take the value for the secCodeTypeOptions options even when it is displayed rather it picks up the first value from the secCodeTypeOptionsIntl array

I would appreciate if someone can tell me where I'm wrong ....please help me how can I get thru ....
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: Dynamically Allocate Array lists to options in a dropdown for struts JSP
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com