<s:if test="${pb.totalPage>0}">//这种写法有问题。
    <tr >
<td  colspan="6" align="right" >
<table border="0">
<tr>
<td  > </td>
<td align="center" ><a id="firstpage"  href="#"        style="cursor: hand">首页</a> 
<a id="lastpage"  href="#"          style="cursor: hand">上页</a> 
<a id="nextpage"  href="#"         style="cursor: hand">下页</a> 
<a id="endpage"  href="#"          style="cursor: hand">末页</a></td>
<td width="120px" align="center"" >
第<font  id="currentpage" color="blue">${pb.currentPage}</font>页
共有<font  id="totalrec" color="blue">${pb.totalPage}</font>记录
</td>
</tr>
</table>
</td>
</tr>
</s:if>
如下写法没有问题
<s:if test="#request.pb.totalPage>0">
    <tr >
<td  colspan="6" align="right" >
<table border="0">
<tr>
<td  > </td>
<td align="center" ><a id="firstpage"  href="#"        style="cursor: hand">首页</a> 
<a id="lastpage"  href="#"          style="cursor: hand">上页</a> 
<a id="nextpage"  href="#"         style="cursor: hand">下页</a> 
<a id="endpage"  href="#"          style="cursor: hand">末页</a></td>
<td width="120px" align="center"" >
第<font  id="currentpage" color="blue">${pb.currentPage}</font>页
共有<font  id="totalrec" color="blue">${pb.totalPage}</font>记录
</td>
</tr>
</table>
</td>
</tr>
</s:if>
谁能告诉我原因,为什么上一种是错误的。