Topic: 这到底是什么意思啊? |
Print this page |
1.这到底是什么意思啊? | Copy to clipboard |
Posted by: chankindy Posted on: 2004-11-22 21:45 我的程序开始是可以运行的,但是进来不知道怎么搞的就出问题了 源程序是这样的 <%@ page contentType="text/html; charset=gb2312" language="java" import="com.*,java.util.*,java.io.*" %> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <jsp:useBean id="user" class="com.User" scope="page"> <jsp:setProperty name="user" property="*"/> </jsp:useBean> <jsp:useBean id="loginBean" class="com.LoginBean" scope="page"/> <body> <% String name=request.getParameter("name"); String password=request.getParameter("password"); String type=request.getParameter("kind"); String log=loginBean.getLoginInfo(name,password,type); if(log.equals("user")){ session.setAttribute("name",user.getName()); session.setAttribute("password",user.getPassword()); response.sendRedirect("userpage.jsp");} if(log.equals("manager")){ session.setAttribute("name",user.getName()); session.setAttribute("password",user.getPassword()); response.sendRedirect("manager.htm");} else{ %> <p align="center" class="style1"> </p> <p align="center" class="style1 style2"><font size="+2">非法用户!</font></p> <p align="center" class="style3"><font size="+2">请您重新填写…</font></p> <p align="center" class="style1"> </p> <p align="center" class="style1"><a href="login.htm" >返回登录界面</a></p> <p align="center" class="style1"> </p> <% } %> <%=log%> <%=request.getParameter("kind") %> <%=user.getType() %> <center> </center> </body> </html> 进入管理员界面可以, 但是进入用户界面就报错,好像是没有连上数据库,前一段时间这个页面是可以成功运行的。源程序我没有改动,近来老报这样的错 description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]???? 'user' ???????? org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.login_005fconfirm_jsp._jspService(login_005fconfirm_jsp.java:103) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]???? 'user' ???????? com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source) com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source) com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(Unknown Source) com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source) com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source) com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source) com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source) com.LoginBean.getLoginInfo(LoginBean.java:25) org.apache.jsp.login_005fconfirm_jsp._jspService(login_005fconfirm_jsp.java:72) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 请高人看看 谢谢 |
2.Re:这到底是什么意思啊? [Re: chankindy] | Copy to clipboard |
Posted by: YuLimin Posted on: 2005-01-28 23:12 http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=205001 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |