<rw:seqval>
The rw:seqval
tag performs actions on a sequence defined by rw:seq
.
Note that the rw:seq
and the rw:seqval
tags must be in the same page.
<rw:seqval ref="sequencename" op="operation" />
Attribute Value |
Description |
|
References the name of the sequence as defined
by name attribute of |
operation |
One of the following values:
|
This example shows the rw:seq
tag used to change the background
colors of a table row. Note how rw:seqval
operates on the sequence
defined by rw:seq
.
<rw:seq name="bgcolor" seq="#bbbbbb, #ffffff"/>
<rw:foreach id="R_G_EMP_NAME_1" src="G_EMP_NAME">
<tr bgcolor="<rw:seqval ref="bgcolor" op="nextval"/>">
<td headers="<%= idEmpName %>">
<rw:getValue id="myEmpName" src="EMP_NAME"/><%= myEmpName %></td>
<td headers="<%= idEmpId %>">
<rw:field id="F_EMPLOYEE_ID" src="EMPLOYEE_ID"> F_EMPLOYEE_ID </rw:field></td>
<td headers="<%= idHireDate %>">
<rw:field id="F_HIRE_DATE" src="HIRE_DATE"> F_HIRE_DATE </rw:field></td>
<td headers="<%= idSalary %>">
<rw:field id="F_SALARY" src="SALARY"> F_SALARY </rw:field></td>
<td headers="<%= idCommision %>">
<rw:field id="F_COMM_PCT" src="COMMISSION_PCT"> F_COMM_PCT </rw:field></td>
<td headers="<%= idManager %>">
<rw:field id="F_EMPLOYEE_ID1" src="EMPLOYEE_ID1"> F_EMPLOYEE_ID </rw:field></td>
<td headers="<%= idTotal %>">
<rw:field id="F_TotalSALARY" src="TotalSALARYPerEMPLOYEE_ID"
formatMask="%NNNNN.00"> F_TotalSALARY </rw:field></td>
</tr>
</rw:foreach>
About JavaServer Pages and servlets
Copyright © 1984, 2005, Oracle. All rights reserved.