I am using
struts, in my
jsp page I have options menu where the value is selected depending on the database value, but the value in the database can be any some new value all the time. How should I make a new list then.
For ex: Let's assume there is a field in database: officeCodes having values from 1 through 10.
Now a new value 11 has been added to officeCodes, how should I update the list. The only code I have is as follows:
<bean:message key="clmrcpt.fromFO" />
<html:select name="ClaimReceiptForm" property="fromOffice">
<html

ption value="1">one</html

ption>
<html

ption value="2">two</html

ption>
<html

ption value="3">three</html

ption>
<html

ption value="4">four</html

ption>
<html

ption value="5">five</html

ption>
<html

ption value="6">six</html

ption>
<html

ption value="7">seven</html

ption>
<html

ption value="8">eight</html

ption>
<html

ption value="9">nine</html

ption>
<html

ption value="10">ten</html

ption>
</html:select>
I do not know how to proceed pls guide me. Thanks for the help in advance.
Arun.