At 11:21 AM 26/09/01, you wrote:
>Hello all,
>
>this is a bit off Topic, but it also belong to Tomcat:
>I have 2 jsp-pages:
>In the first a result set is executed.
>Each record in the row has a button ( more information) which leeds to
>the second page. On this page I will give more information to the item
>of the first page but I allways see only the last record of the result
>set. Here's a piece of my code:
>
><%   while(rs.next())  {
>
>session.setAttribute("autor",rs.getString(1));
>session.setAttribute("titel1",rs.getString(2));
>..........
>%>


By doing while(rs.next()) you're reading up to the end of the result set!



--

                           *   Jim Cheesman   *
             Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
           I have a twin brother; 
he's identical, but I'm not.


Reply via email to