3D Gladiators Forums

3D Gladiators Forums (https://www.3dgladiators.net/forums/index.php)
-   General Discussions (https://www.3dgladiators.net/forums/forumdisplay.php?f=337)
-   -   jsp: Troubles with generating at body tag. (https://www.3dgladiators.net/forums/showthread.php?t=19024)

scaramanga February 4th, 2003 10:47 AM

jsp: Troubles with generating at body tag.
 
My page stops generating when it reaches the body tag. I don't get any errors so I don't have a clue about what's wrong. Here's my code.

<html>
<head>
<title>titel</title>
</head>

<body>
<%@ page import="java.net.URL" %>
<%@ page import="java.sql.*" %>

libraries worden geladen.

<% String url = "jdbc:odbc:odbc_exmp";
try{
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection (url, "", "");
Statement stmt = con.createStatement();
ResultSet result = stmt.executeQuery("Select * FROM Names;"); %>
<table border=10>
<tr>
<%while (result.next()) {%>
<tr>
<% result.getString("First_name"); %> </tr> <%}
}
catch (Exception e) {
e.printStackTrace();
}
%>
</body>
</html>


All times are GMT -7. The time now is 01:31 PM.

Powered by: vBulletin Version 3.8.11 Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content and Graphics ©1999-2010 3DGladiators