Go Back   3D Gladiators Forums > DISCUSSION AND SUPPORT > General Discussions
Notices
General Discussions Need to talk about anything not covered in the other discussion forums? Pop here! NO FLAMING ALLOWED!

Reply

 
Thread Tools
Old February 4th, 2003, 10:47 AM   #1
scaramanga
Flight Instructor
 
scaramanga's Avatar
 
Join Date: May 2001
Location: Waregem, Belgium
Posts: 538
Default 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>
__________________
"However beautiful the strategy, you should occasionally look at the results." Winston Churchill
"the computer market is the only one where people spend a lot of money for something that they fully expect to be painful, frustrating and laborious to use" Trish Forcinio
"640K ought to be enough for anybody" Bill Gates
scaramanga is offline   Reply With Quote

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump






For Fans Of CGI/Digital Art


All times are GMT -7. The time now is 01:43 PM. Contact Us - 3D Gladiators - Archive - Privacy Statement - Top
Powered by: vBulletin Version 3.8.11 Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content and Graphics ©1999-2010 3DGladiators
The 3D Gladiators Forums are run by CGI/Digital Art fans, paid for by CGI/Digital Art fans, for the enjoyment of fellow CGI/Digital Art fans.



©1999-2005 3D Gladiators