下面那个pid获取不到值是怎么回事? productList有值 运行到<tr>就直接跳到页尾
<logic:iterate id="product" name="productList" scope="session" indexId="index">
<% String pid = ((ArrayList<Product>)request.getAttribute("productList")).get(index).getProductid   ().toString();%>  <tr style='color:#333333;' bgcolor="<%=index.intValue()%2!=0?"#FFFBD6":"white"%>" >
<td> <html:checkbox property="pids" value=""/></td>
<td> <bean:write name="product" property="productid"/> </td>
<td> <bean:write name="product" property="category.categoryid"/> </td>
<td> <bean:write name="product" property="productname"/> </td>
<td> <bean:write name="product" property="price"/> </td>
<td> <bean:write name="product" property="re"/> </td>
<td> <bean:write name="product" property="registerdate"/> </td>
</logic:iterate>