This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
used for drop down list in my jsp, where utList is an Arraylist of Hashmaps from the backend database table. I am able to display the dropdown box but on submit I am not able to retain the selected value.
I do have a session.getAttribute set for the selected value in my servlet.
thanks...yeah I know that we have to use <option value="xyz" selected>...but I was wondering how we go about doing the same in that code?
I do have my program working when I use a String to display options, but I'd like to know if there is anyway we can do the same, using EL, when and arraylist of Hashmaps is used, as in the code displayed above?