Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate the user in the option box

Status
Not open for further replies.

swaroop

Programmer
Feb 4, 2001
100
US
Hi All,

When I login I have the option box with set of users in the list I am expecting my Username should be displayed at the top. Currently it is displaying null and when I click the option box I have option to select the username. Please suggest me to correct my code.

Here suspendOperator is the Username.

<bean:define id="selectedOperator" name="SessionContainer" property="operatorVO.supervisor" type="java.lang.String"/>
<select id="workbasket" name="workbasket" size="1">
<option value=""></option>
<logic:iterate name="SuspendOperators" id="suspendOperator" type="java.lang.String">
<logic:equal name="selectedOperator" value="<%= suspendOperator %>">
<option value="<%= suspendOperator %>" selected="selected">
<%= suspendOperator %>
</option>
</logic:equal>
<logic:notEqual name="selectedOperator" value="<%= suspendOperator %>">
<option value="<%= suspendOperator %>">
<%= suspendOperator %>
</option>
</logic:notEqual>
</logic:iterate>
</select>

Thanks in advance.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top