my dog learned polymorphism
The moose likes Struts and the fly likes Jsp and combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Jsp and combobox" Watch "Jsp and combobox" New topic

Jsp and combobox

fabrizio bellomo

Joined: Jul 07, 2011
Posts: 3
hello ,
i'm working in a struts project but i have a little problem with a combobox

<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"/>

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

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

Joined: Jan 10, 2002
Posts: 63837

Correct terminology is important: HtmlHasNoComboBox

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Jsp and combobox
jQuery in Action, 3rd edition