再dreamweamer中的代码如下:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
Date d=new Date();
%>
<%
int t=11;
%>
<%out.print(t);%>
<p>当前时间是<%=d%></p>
<p>
<% for (int i=1; i<=4; i++) { %>
<H<%=i%>>Hello</H><%=i%>>
<% } %>
<%
try
{
String str_url="jdbc:odbc:user_message";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection(str_url,"sa","");
out.println("数据库连接成功!");
}
catch(Exception ee){ee.printStackTrace();}
}
finally
{
if(con!=null)
con.close();
}
%>
</p>
</body>
</html>
代码没错误,就是再浏览器中打开进度40%左右就不动了.不知道是 怎么回事?