Re: Empty JSP page

From: Dave Godbey <luhbey_at_erols.com>
Date: Tue, 31 Oct 2000 20:38:23 -0500
Message-ID: <39FF740F.13CC8567_at_erols.com>


I'm only an occassional JSP user, but I think you need to close the scriplets with />, or something like that. Check you syntax. Dave

Valgaeren Dirk wrote:

> Could someone check the next code for a connection with a database :
>
> <% Class.forName("java.sql.DriverManager");%>
> <%_at_ page import="java.sql.*"%>
> <% Connection conn =
> DriverManager.getConnection("jdbc:oracle:oci8:_at_143.169.165.1:1521:ORCL",
> "test", "test"); %>
>
> <% Statement statement = conn.createStatement(); %>
> <% ResultSet resultSet = statement.executeQuery("select * from emp"); %>
> <%= resultSet.getString(1) %>
>
> I don't get any errors, unfortunately, I don't get a result either.
>
> Anything I type after <% Connection conn = DriverManager.getConnection
> ..........
> doesn't appear on my screen.
>
> Can someone tell me why ???????
>
> thx
  Received on Wed Nov 01 2000 - 02:38:23 CET

Original text of this message