S
sreevneni
hi ..
i trying to display a selected value when the page is refreshed in a
list box using the following code ...but its working out ...please let
me know if anyone knew this
thanks in advance ....
<logic:equal name="usrolcd" property="roleCode"
value="SM">
<TR bgcolor="#660099">
<TD width="75%" align="center" bgcolor="#CCCCCC">
<div align="left"><FONT face="Arial, Helvetica,
sans-serif"
size="2" color="#000000"><B>Pricing Analyst
</B></FONT></div>
</TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" width="75%">
<TABLE align="left" width="100%" border="0"
cellspacing="0"
cellpadding="2" bgcolor="#FFFFFF">
<TR>
<TD align="left" width="35%"><font size="2"
face="Arial, Helvetica,
sans-serif"><strong>Pricing
Analyst:</strong></font></TD>
<TD align="left" width="65%"><html:select
property="userAdmin.PA"
onchange="processPA(this);" value="">
<htmlption value="" >Select Pricing
Analyst</htmlption>
<nested:iterate id="element"
name="UserAdminForm"
property="userAdmin.PAList">
<logicresent
name="UserAdminForm" property="userAdmin.PA_ls">
<bean:define id="usrPA" name="UserAdminForm"
property="userAdmin.PA_ls" type="java.lang.String"/>
</logicresent>
<logic:equal name="element" property="empId"
value="<%usrPA%>">
<option value="<bean:write name="element"
property="empId"/>" selected >
<bean:write name="element" property="nameRev"
/></option>
</logic:equal>
<logic:notEqual name="element"
property="empId" value="<%usrPA%>">
<option value="<bean:write name="element"
property="empId"/>">
<bean:write name="element" property="nameRev"
/></option>
</logic:notEqual>
</nested:iterate>
</html:select></TD>
</TR>
</TABLE>
</TD>
</TR>
</logic:equal>
______________________________
i trying to display a selected value when the page is refreshed in a
list box using the following code ...but its working out ...please let
me know if anyone knew this
thanks in advance ....
<logic:equal name="usrolcd" property="roleCode"
value="SM">
<TR bgcolor="#660099">
<TD width="75%" align="center" bgcolor="#CCCCCC">
<div align="left"><FONT face="Arial, Helvetica,
sans-serif"
size="2" color="#000000"><B>Pricing Analyst
</B></FONT></div>
</TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" width="75%">
<TABLE align="left" width="100%" border="0"
cellspacing="0"
cellpadding="2" bgcolor="#FFFFFF">
<TR>
<TD align="left" width="35%"><font size="2"
face="Arial, Helvetica,
sans-serif"><strong>Pricing
Analyst:</strong></font></TD>
<TD align="left" width="65%"><html:select
property="userAdmin.PA"
onchange="processPA(this);" value="">
<htmlption value="" >Select Pricing
Analyst</htmlption>
<nested:iterate id="element"
name="UserAdminForm"
property="userAdmin.PAList">
<logicresent
name="UserAdminForm" property="userAdmin.PA_ls">
<bean:define id="usrPA" name="UserAdminForm"
property="userAdmin.PA_ls" type="java.lang.String"/>
</logicresent>
<logic:equal name="element" property="empId"
value="<%usrPA%>">
<option value="<bean:write name="element"
property="empId"/>" selected >
<bean:write name="element" property="nameRev"
/></option>
</logic:equal>
<logic:notEqual name="element"
property="empId" value="<%usrPA%>">
<option value="<bean:write name="element"
property="empId"/>">
<bean:write name="element" property="nameRev"
/></option>
</logic:notEqual>
</nested:iterate>
</html:select></TD>
</TR>
</TABLE>
</TD>
</TR>
</logic:equal>
______________________________