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,
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,