jsp页面,为什么同一记录会重复显示?麻烦各位大哥帮忙
为什么我的jsp页面对从数据库检索出来的记录每条都重复显示多次?)(框架页面结构,跳转菜单选择不同的表查询数据,有一个表的记录是如实显示出来的,其它表的数据都是重复显示。这里所有表的记录都是唯一的,服务器是tomcat5.5.12) 
 小女在此叩谢啦
------解决方案--------------------应该看看你的表结构,你在查询的时候,是否用到了多表查询? 
------解决方案--------------------lz是否使用了连接查询?
------解决方案--------------------代码贴看看就知道了!SQL语句是关键!
------解决方案--------------------页面代码如下,麻烦啦   
  <%@ page contentType= "text/html; charset=gb2312 " language= "java " import= "java.sql.*,java.io.* "  %>  
  <html>  
  <head>  
  <title> Untitled Document </title>  
  <meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">  
  </head>  
  <jsp:useBean id= "con " scope= "page " class= "common.ConnectionBean " />  
  <body background= "../images/BK.jpg ">    
  <center>  
  <script  language= "JavaScript " src= "check.js ">  </script>    
  <% 
    int intPageSize; //一页显示的记录数  
    int intRowCount; //记录总数  
    int intPageCount; //总页数  
    int intPage; //待显示页码  
    String strPage;  
    int i;    
    //设置一页显示的记录数  
    intPageSize = 6;    
   //取得待显示页码  
   strPage = request.getParameter( "page ");  
   if(strPage==null){//表明在QueryString中没有page这一个参数,此时显示第一页数据  
   intPage = 1;  
   }  
   else{//将字符串转换成整型  
   intPage = Integer.parseInt(strPage);  
   if(intPage <1) intPage = 1;  
   }      
    String temp= " "; 
    String id= " "; 
    String Table= " "; 
    id=con.codeString(request.getParameter( "ID "));//此ID为列拉列表框中optionID值 
    if(id.intern()== "1 ".intern()) 
    { 
 	  Table= "tb_zggb "; 
 	  temp= "中国古币 "; 
    } 
    else if(id.intern()== "2 ".intern()) 
    { 
 	   Table= "tb_mghb "; 
 	   temp= "民国货币 "; 
    } 
    else if(id.intern()== "3 ".intern()) 
    { 
 	   Table= "tb_gjdhb "; 
 	   temp= "根据地货币 "; 
    } 
    else if(id.intern()== "4 ".intern()) 
    { 
 	   Table= "tb_zgpz "; 
 	   temp= "中国票证 "; 
    } 
    else if(id.intern()== "5 ".intern()) 
    { 
 	   Table= "tb_zggp "; 
 	   temp= "中国股票 "; 
    } 
    else if(id.intern()== "6 ".intern()) 
    { 
 	   Table= "tb_rmb "; 
 	   temp= "人民币 "; 
    } 
    else if(id.intern()== "7 ".intern()) 
    { 
 	   Table= "tb_gathb "; 
 	   temp= "港澳台货币 "; 
    } 
    else if(id.intern()== "8 ".intern()) 
    { 
 	   Table= "tb_dzhb "; 
 	   temp= "电子货币 "; 
    } 
    else if(id.intern()== "9 ".intern()) 
    { 
 	   Table= "tb_wghb "; 
 	   temp= "外国货币 "; 
    } 
    else if(id.intern()== "10 ".intern()) 
    { 
 	   Table= "tb_jnb "; 
 	   temp= "纪念币 "; 
    } 
    else if(id.intern()== "11 ".intern()) 
    { 
 	   Table= "tb_gdhb "; 
 	   temp= "广东货币 "; 
    }   
    else if(id.intern()== "12 ".intern()) 
    { 
 	   Table= "tb_mqzb "; 
 	   temp= "明清纸币 "; 
    } 
    %>  
  <%   con.setCon();