Hi I have a drop down list which I have to construct dynamically.I am using struts2's s:select tag to display the dropdown list and I need to get the selected value and place it in the database.Here is the code snippets which I use
I tried with various combinations of <s:select> like
But no result I am able to display the list but not able to set the selected value from database say If I get the 2008 from database I am not able to set it to "2008".Similarly I am not able to retrieve the value from the drop down list when I submit the form.
My goal is when I submit I need to palce the value in the selectedValue property in myBean object.This king of new to me any help is apreciated.