Hi Vijay,
I know I am raising up this
thread again after such a long time, but after hours of search this is where I think I might find my solution. Please excuse me if you find this post lengthy.
I am using the same method as you used for updating drop down lists (struts 2 version). But the problem I face is that although my action class gets executed (I set the lists for the drop downs in action class), the drop downs don't get populated according to the lists set in the action class.
Also I would like to clarify 3 things:
1.) <s:url action="select2" var="url"/>
Here, did you use "select2" in action because your action class name is "select2.java" or because your jsp page name is "select2.jsp" ?
2.) list="#application.countries"
Here, I assume that the list name that you set in the action class was "countries". Then why did you use "#application.countries" instead of simply "countries".
3.) In my case I have 5 drop downs that have to be updated in case any one of then is changed. So the way you have done it, do I have to create a separate jsp for each drop down ?
Here is what I have done, please have a look:
My jsp page:
Here is my struts config (although I dont think there is any issue here):
Please help me in resolving this issue asap. Its really bugging me.
Thanks!!!