I am using JSTL to get populate the book list to select box.
In my action class i am setting selected book name to session on submitting the form. My success page of the action is also the same input page. So I am expecting the selected book name to be selected in the drop box.
so i added the line to option tag.
But the value is not selected as expected. Please let me know if I am making any thing wrong here.
yes i checked the source code it is showing one of the option as selected, which i select and if you are not able to get the result try printing the value of "sessionScope.selectedState".
@Bear- I checked the generated HTML. As the value was getting printed when not placed inside the option tag, i was confused about the syntax usage. Any ways thanks for all help.