Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

A Search Dropdown list

423729Aug 20 2004 — edited Aug 23 2004
Hi,

I have a page where I need to put a dropdown list, a single select list or something similar to display a list of values from a table, but I'm not going to save the selection of the dropdown list because I'm using it just as a filter over another table.

My problem is when I submit the form to filtrate the data of the other table which is displayed at the bottom of the page. When the page is displayed after submitting I lose the selected option of the drop down list, it shows always the first option.

Does anybody know how to preserve the selected value or how I should create the dropdown list, combobox or anything that I would need to solve that problem?

I have the following code to fill the list:

<select name="CodigoPerfil" onchange="submitForm()">
<c:forEach var="Row" items="${bindings.SegPerfilView1.rangeSet}">
<option value="<c:out value="${Row['Codigo']}"/>" eq $(param.CodigoPerfil)?"Selected":"">
<c:out value="${Row['Descripcion']}"/>
</option>
</c:forEach>
</select>

Thanks,
Pedro
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2004
Added on Aug 20 2004
5 comments
377 views