我的conn.jsp内容如下
<%@include file="head.html"%>
<%@ page session="true" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*,java.lang.Double.*" %>
<%//加载驱动程序类
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
String
url="jdbc:microsoft:sqlserver://localhost:1433;DatebaseName=shoppingmall";
//数据源
String id="sa";
String password="";
//建立数据库连接
Connection conn=DriverManager.getConnection(url,id,password);
CallableStatement cstmt=null;
ResultSet rs=null;
String strSql;
String user; //保留登陆客户的ID
String sysuser;
String sysuserType;
String action; //页面动作%>
错误如下
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException org.apache.jsp.bysj.CustomerLogin_jsp._jspService(CustomerLogin_jsp.java:124) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
我的系统是XP2 SQL2000 SP3补丁,请高手帮我解决下,非常感谢!~~~~