vector问题.....
我在first.jsp页面中有 <html:link page="/show.do">点击进入</html:link>
然后在show.do对应的showActionz中有
sql = "select distinct(PICNAMES) from TJB where MODELS='生产统计'";
rs = db.executeQuery(sql);
while(rs.next())
{
picnamesbean pic=new picnamesbean();
pic.setpicnames(rs.getString("PICNAMES"));
vector1.add(pic);
}
rs.close();
request.setAttribute("vector1",vector1);
return mapping.findForward("indexsuccess");//forward页面是show.jsp
然后转到show.do(show.jsp)页面中用
<table width=100% border=2>
<tr>
<td><font size=2>生产统计</font>
</td>
</tr>
<logic:iterate id="element" name="vector1">
<tr>
<td>
<bean:write name="element" property="picnames"/>
</td>
</tr>
</logic:iterate>
</table>
并且能够显示从数据库中取得的数据.
但问题是,当点击刷新后,就出现同样的两条记录.
请问这是什么问题啊!...谢谢帮忙!......