一级菜鸟求助!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
小弟自己写的程序,运行后提示
HTTP Status 404 - /JspSite/TMP8ekd2adq3.jsp
--------------------------------------------------------------------------------
type Status report
message /JspSite/TMP8ekd2adq3.jsp
description The requested resource (/JspSite/TMP8ekd2adq3.jsp) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.16
源代码如下,请各们大虾帮助解决
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
String Uname=request.getParameter("UsersName");
String Pwd=request.getParameter("Pwd");
String strurl = "jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=EXP1.mdb";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection(strurl);
stmt = conn.createStatement();
rs = stmt.executeQuery("select * from UserTable where uName="+uname+"and upwd="+pwd);
int rowscount=0;
while (rs.next()) {
rowscount++;
}
if(rowscount!=0)
{
Response.Wirte("成功登陆");
}
}else{
Response.Wirte("您的用户名或者密码不正确");
}
rs.close();
stmt.close();
conn.close();
%>
</body>
</html>