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.
suppose you have selected update option you check for VO.
In update case if data is in database then VO will not be null so you check for VO not null condtion.
If VO is not null then retrive the value and put select i mean
<option value="<%=exampleVOArray[i].getname()%>" selected>