This is my favourite forum. I just have a silly problem that's occuring on all of my pages.
If I have a drop down that's dynamically populated from the database through ajax, how do I get the selected value in the associated form bean. The bean takes the value (i tested it in the action class) of the list that is hard coded and not that is dynamically populated.
Here's the jsp:
Here's the script:
When I click the (<html:submit>) button I want the district(dynamic) to be access in the action class, but gives null.
This my first project with J2EE, Struts . Please help.
Joined: May 09, 2011
Sorry folks, this was a silly mistake in the script. The name attribute had not rendered itself properly because of the script.
var drop = '<select name="' + dynaDiv + ' id="' + dynaDiv + '">' + firstOpt + s + '</select>';
Sorry for posting such a silly one there.
subject: dynamic value to be submitted to form beans