This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 63355

Correct terminology is important: HtmlHasNoComboBox

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Jsp and combobox
It's not a secret anymore!