JAVA Select

Status
Not open for further replies.

Digital_Jedi

In Runtime
Messages
141
Location
Amarillo, Texas
I have a select box that has several things listed and what I want to do is basicly set one item to default and hid the select box from the user. The code is on a jsp... fyi

<% if ("PRM".equals(party)) { %>
<tr>
<td colspan=3 align=left class="small">
Party
<br>
<select name="primaryParty">
<option value="0"
<% if ((partyNewHandler.getPrimaryParty()).equals("0"))
out.print("selected");%>> select one
<% for (int i=0; i<partyOtherArray.length; i++) { %>
<option value="<%=partyOtherArray[0]%>"
<%if ((partyNewHandler.getPrimaryParty()).equals(partyOtherArray[0]))
out.print("selected");%>> <%=partyOtherArray[1]%>
<% } %>
 
Status
Not open for further replies.
Back
Top Bottom