could you try to switch the position of while?

out.println("<html>");

out.println("<head>");

out.println("<title>Liste des

noms et

telephones</title>");

out.println("</head>");
                                out.println("<body>");
                                        while(rs.next()){


out.println(rs.getString("nom")):
                                                out.println("<br>");
                                                }



> -----Original Message-----
> From: abrougui raouf [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 14, 2000 9:04 AM
> To:   [EMAIL PROTECTED]
> Subject:      re : ERROR
>
> HI
>
> here is a part of my code :
>
> rs = stmt.executeQuery("SELECT nom FROM
> telephone_table;");
>                         ResultSetMetaData rsmd =
> rs.getMetaData();
>                         out.println("<html>");
>                         out.println("<head>");
>                         out.println("<title>Liste des
> noms et
> telephones</title>");
>                         out.println("</head>");
>                         out.println("<body>");
>                         out.println("<ul>");
>                         while(rs.next());
>
> Raouf
>
> >Katja wrote:
> >did you use the next() method on the resultset
> object?
>
>
>
> ___________________________________________________________
> Do You Yahoo!?
> Achetez, vendez! � votre prix! Sur http://encheres.yahoo.fr
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to