当前页面: 开发资料首页 → JSP 专题 → jsp+servlet+javaBean,jsp页面调用出错
jsp+servlet+javaBean,jsp页面调用出错
摘要: jsp+servlet+javaBean,jsp页面调用出错
伙计只剩下9分了,各位帮帮忙!
使用 jdk1.4.2 + tomcat5.0 + mysql5.0 + eclipse3.01
做了一个前台显示查询结果的页面,使用servlet 转到jsp页面后出错,错误提示如下:
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.admin_jsp._jspService(admin_jsp.java:72)
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
jsp显示页面的代码如下:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*,com.*" errorPage="" %>
<head>
无标题文档