• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp and combobox

 
fabrizio bellomo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,
i'm working in a struts project but i have a little problem with a combobox

<td>Stato</br>
<select id="scelta" name="scelta" onchange="javascript:fun(this.selectedIndex);" >
<logic:iterate id="MonitoringBackForm" name="elenco" >
<option value='<bean:write name= "MonitoringBackForm" property="idrequeststatus"/>'>
<bean:write name= "MonitoringBackForm" property="requeststatus"/>
</option>
</logic:iterate>
</select>
</td>

My problem is that everytime i submit the form, the value of the combobox returns at the default value, instead of remaining at the current.
So for example if i have in the combo
1- accept
2- refuse
3-all

at the beginning i see accept. Then, if i search for all, i can view corretly all the information i need, but the value of the combo returns at the accept value,instead of remaining at all.

Thanks for any help
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct terminology is important: HtmlHasNoComboBox
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic