MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 不知道那里出错了,请帮下忙,该怎么处理

不知道那里出错了,请帮下忙,该怎么处理

www.MyException.Cn  网友分享于:2013-09-12  浏览:8次
不知道那里出错了,请帮下忙
index.jsp
前面代码
<%@   page   contentType= "text/html;   charset=gb2312 "   language= "java "   import= "java.sql.* "   errorPage= " "   %>
<%@   page   import= "com.wgh.DB.connDB "   %>
<%
connDB   conn=new   connDB();
String   username=(String)session.getAttribute( "username ");
ResultSet   rs_sale=conn.executeQuery( "select   top   4   ID,goodsName,price,nowprice,picture   from   tb_goods   where   sale=1   order   by   INTime   desc ");
int   sale_ID=0;
String   s_goodsname= " ";
float   s_price=0;
float   s_nowprice=0;
String   s_picture= " ";
ResultSet   rs_new=conn.executeQuery( "select   top   6   ID,goodsName,nowprice,introduce,picture   from   tb_goods   where   newGoods=1   order   by   INTime   desc ");
int   new_ID=0;
String   new_goodsname= " ";
float   new_nowprice=0;
String   new_introduce= " ";
String   new_picture= " ";
%>
<html>
<head>
<title> 电子网 </title>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<link   href= "CSS/style.css "   rel= "stylesheet ">
</head>
<body>
<table   width= "790 "     border= "0 "   cellspacing= "0 "   cellpadding= "0 "   align= "center ">
  <tr>
  <td   class= "tableBorder ">
<jsp:include   page= "navigation.jsp "/>
<table   width= "790 "   height= "236 "     border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
    <tr>
        <td   width= "182 "   height= "182 "   valign= "top ">
<jsp:include   page= "left.jsp "/>
</td>
.....................................
....................................


错误提示:

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   /index.jsp   at   line   6
3:   <%
4:   connDB   conn=new   connDB();
5:   String   username=(String)session.getAttribute( "username ");
6:   ResultSet   rs_sale=conn.executeQuery( "select   top   2   ID,goodsName,price,nowprice,picture   from   tb_goods   where   sale=1   order   by   INTime   desc ");
7:   int   sale_ID=0;
8:   String   s_goodsname= " ";
9:   float   s_price=0;

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)

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有