I need assistance to populate select list in Struts 2.
Have simple registration form in which need to fill select list from database say user name list.
I use below format :
<s:select name="username" label="Username" headerKey="-1" headerValue="Select Search Engines" list="%{#{'value':'front','value1':'front1'}}" theme="simple" onchange="getData(this.value)"/>
But how to fill it from database?