<%@ page contentType="text/html;charset=gb2312" errorPage="err.jsp" import="java.sql.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JAVA精品课程网站——蝈蝈</title>
<style type="text/css">
<!--
body {
margin-top: 1px;
margin-bottom: 0px;
}
a:link {
font-size: 14px;
color:#A1A1A1;
text-decoration: none;
}
a:hover {
font-size: 14px;
color: #CCCCCC;
text-decoration: none;
}
a:visited {
font-size: 14px;
color: #528828;
text-decoration: none;
}
.style2 {font-size: 14px}
.style3 {font-size: 12px}
.style4 {font-size: 13px; }
-->
</style>
</head><body><center>
  <table width="800"   cellpadding="0" cellspacing="0" >
    <tr>
      <td colspan="2" height="=150"><img src="images/JDSJ070.jpg" width="800" height="150"></td>
    </tr>
<tr> <td colspan="2">  <%
String name=(String) session.getAttribute("userName"); 
if ( name==null ||name.equals(""))
{
%>

<FORM METHOD=POST ACTION="userinfo/login.jsp">
      <TABLE width="600">
      <TR>
       <TD><span class="style4">用户名</span>         <input name="username" type="text" size="20" maxlength="12"></TD>
       <TD><span class="style4">密码</span>         <input name="password" type="password" size="20" maxlength="16"></TD>
       <TD><input type="submit" name="Submit" value="登录"> <a href="#">忘记密码</a> <a href="userinfo/zhuce.htm">新用户注册</a></TD>
      </TR>
      </TABLE>
      </FORM>
<%
}
else  
out.print("欢迎您,"+name+"  <a href=userinfo/logout.jsp>退出登录</a>  <a href=userinfo/newMima.jsp?userName="+name+">修改密码</a>   <a href=userinfo/newUsername.jsp>修改用户名</a> ");
%></td></tr>
    <tr>
      <td width="27%"  valign="top" >
<table width="100%"  border="0" cellpadding="1" cellspacing="1">
  <tr>
<td height="50"><img src="images/pic1.gif" width="213" height="50"></td>
  </tr>
  <tr>
<td height="25" bgcolor="#91C82F"><div align="center"><a href="index.jsp"> 首  页   </a></div></td>
  </tr>
  <tr>
<td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/sbcl.htm">申报材料</a></div></td>
  </tr>
  <tr>
<td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/kcjs.htm">课程介绍</a></div></td>
  </tr>
  <tr>
<td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/jxdg.htm">教学大纲</a></div></td>
  </tr>
  <tr>
<td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/jsdw.htm">教师队伍</a></div></td>
  </tr>
  <tr>
<td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/ckwx.htm">参考文献</a></div></td>
  </tr>
  </table>
<br>
  <table width="100%%"  border="0" cellpadding="1" cellspacing="1">
        <tr>
          <td height="50"><img src="images/pic2.gif" width="213" height="50"></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/ltxt.htm">例题习题</a></div></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#91C82F"><div align="center"><a href="zxcs/index.jsp">在线测试</a></div></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#91C82F"><div align="center"><a href="ywbd/index.jsp">有问必答</a></div></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/kjxz.htm">课件下载</a></div></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/jxlx.htm">教学录象</a></div></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#91C82F"><div align="center"><a href="pages/syzd.htm">实验指导</a></div></td>
        </tr>
        <tr>
          <td height="25"><div align="center"></div></td>
        </tr>
      </table>   
  </td>
  <td valign="top"><table>
  <tr>
         <td height="50" colspan="2" valign="top"><div align="center">
           <p class="font-11-title style2"><img src="images/a4.gif" width="580" height="50"></p>
          </div>      
     </td>
      </tr>
  
      <tr>
      <td colspan="2"  valign="middle" bgcolor="#FFFFFF" >
 <!--<marquee direction="left" loop="-1" onMouseOver="this.stop();" onMouseOut="this.start();" scrollamount="2">
   <jsp:useBean id="listnews_title" scope="page" class="aaa.DBOperate_news"/>
  <%
  String newsID,title;
      ResultSet rs=listnews_title.Listnews();
  int i=3;
while (rs.next() && i>0)
{
newsID=rs.getString("newsID");
title=rs.getString("title");
%><a href="pages/news.jsp?newsID=<%=newsID%>" target="_blank"><%=title%></a>&nbsp;&nbsp;
<%

i--;
}

%></marquee>  -->      </td>
    </tr>      <tr>
        <td width="93"  valign="middle" bgcolor="#FFFFFF" >&nbsp;</td>
        <td width="483"  valign="middle" bgcolor="#FFFFFF" ><p>&nbsp;</p>
          <p>&nbsp;</p>
          
  <%  
       rs=listnews_title.Listnews();
  i=10;
while (rs.next() && i>0)
{
newsID=rs.getString("newsID");
title=rs.getString("title");

i--;
%>
<img src="images/titleb.gif">  <a href="pages/news.jsp?newsID=<%=newsID%>" target="_blank"><%=title%></a> <br>
     <%
}
 listnews_title.closeCon();
%>
          <p class="style4">              </p></td>
      </tr>
</table>
      <br>
      <table>
        <tr>
          <td height="50" colspan="2" valign="top"><div align="center">
              <p class="font-11-title style2"><img src="images/a4.gif" width="580" height="50"></p>
          </div></td>
        </tr>
        <tr>
          <td colspan="2"  valign="middle" bgcolor="#FFFFFF" >
            
          </td>
        </tr>
        <tr>
          <td width="93"  valign="middle" bgcolor="#FFFFFF" >&nbsp;</td>
          <td width="483"  valign="middle" bgcolor="#FFFFFF" ><p>&nbsp;</p>
              <p>&nbsp;              </p>
              <p class="style4">              </p></td>
        </tr>
      </table></td>
</tr>
    <tr bgcolor="#FDB721">
      <td colspan="2"><div align="center" class="style4">Copyright &copy; 2010河南省职业技术学院信息工程系 All rights reserved.</div></td>
    </tr>
  </table>
</center>
</body>
</html>

解决方案 »

  1.   

    新安装的数据库 mysql 不会做数据库的东西 
    帮我说明下
      

  2.   

    HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /mybbs/abc/index.jsp(125,4) The value for the useBean class attribute aaa.DBOperate_news is invalid.
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
    org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
    org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1178)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
    org.apache.jasper.compiler.Generator.generate(Generator.java:3383)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.
    --------------------------------------------------------------------------------Apache Tomcat/6.0.24就是运行不了
      

  3.   

    能交个朋友吗 
    还有些地方需要指导
    最近要做jsp 网站 及论坛 
    QQ:553670401
      

  4.   


    /mybbs/abc/index.jsp(125,4) The value for the useBean class attribute aaa.DBOperate_news is invalid. 
      

  5.   

    error page: /mybbs/abc/index.jsp(125,4) 
    error reason: The value for the useBean class attribute aaa.DBOperate_news is invalid. 
      

  6.   

    没仔细看代码 不过发现了个问题 貌似你没引DBOperate_news所在的包,虽然后面使用的是完整类名不过引包还是必要的
    <jsp:useBean id="listnews_title" scope="page" class="aaa.DBOperate_news"/> error reason: The value for the useBean class attribute aaa.DBOperate_news is invalid.