可惜不是你,陪我到最后
调试可以,那就可以排除程序的问题,再看看你的JSP文件就可以
还有,要看看你的详细错误信息
jsp文件已经放上面了,帮忙看下,我实在没办法了,快要做毕业设计了,这状态让人着急死了
错误信息都在这里了
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /web/index.jsp at line 18
15: <%
16: String sql="select * from main order by id desc";
17:
18: ResultSet rs=con.executeQuery(sql);
19: try{
20: while(rs.next()){%>
21: <%=rs.getString("content")%>
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:555)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
conn.connDb.executeQuery(connDb.java:36)
org.apache.jsp.web.index_jsp._jspService(index_jsp.java:83)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:390)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.2 logs.
一定帮我看看 啊
是不是javabean 写错了,还是JSP错误
谢谢