aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Jsp and combobox" Watch "Jsp and combobox" New topic
Author

Jsp and combobox

fabrizio bellomo
Greenhorn

Joined: Jul 07, 2011
Posts: 3
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

Joined: Jan 10, 2002
Posts: 61432
    
  67

Correct terminology is important: HtmlHasNoComboBox


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp and combobox