日期:2014-05-18  浏览次数:20708 次

JSP购物网站连数据库问题 我弄了1天了 帮帮我 在线等!!!
下面第一串*号内的代码有问题   编译时提示org.apache.jasper.JasperException:   An   exception   occurred   processing   JSP   page   /left.jsp   at   line   80
但是第二串*号内的代码格式跟第一个是一样的   为什么没事啊   帮帮我啊  

<%@   page   contentType= "text/html;   charset=gb2312 "   language= "java "   import= "java.sql.* "   %>
<%
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver ").newInstance();
String   url= "jdbc:odbc:db_shop ";
String   user= "sa ";
String   password= "123456 ";
Connection   conn=DriverManager.getConnection(url,user,password);
Statement   stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet   rs_bbs=stmt.executeQuery( "select   top   5   *   from   tb_bbs   order   by   INTime   desc ");

ResultSet   rs_sort=stmt.executeQuery( "select   GoodsID,GoodsName,   sum(number)   as   sumNum   from   V_order_detail   group   by   GoodsName,GoodsID   order   by   sumNum   desc ");
%>
<script   src= "JS/check.jsp "> </script>
<link   href= "CSS/style.css "   rel= "stylesheet "   type= "text/css ">

<table   width= "100% "     border= "0 "   cellpadding= "0 "   cellspacing= "0 ">
            <tr>
                <td   height= "83 "   align= "center "> <img   src= "images/shop_11.gif "   width= "182 "   height= "83 "> </td>
            </tr>
            <tr>
                <td   height= "98 "   align= "center "   background= "images/shop_17.gif ">     <form   name= "form1 "   method= "post "   action= "Login_U.jsp ">
    <table   width= "100% "     border= "0 "   cellpadding= "0 "   cellspacing= "0 ">
                        <tr>
                            <td   width= "10% "> &nbsp; </td>
                            <td   width= "90% "   valign= "top "   background= "Images/index_09.gif ">
    <%String   username=(String)session.getAttribute( "username ");
    if   (username==null   ||   username== " "){%>
    <table   width= "100% "     border= "0 "   cellpadding= "0 "   cellspacing= "0 ">
                                <tr>
    &nbs