网王同人燕归txt下载:高手帮忙:一个小程序的错误
来源:百度文库 编辑:神马品牌网 时间:2024/08/29 03:14:53
<html>
<title>会员登录</title>
<%@page contentType="text/html;charset=gb2312"%>
<body>
<font size=5 color=green>登录画面</font>
<font color=red>
<%
String errmsg=new String(request.getParameter("errmsg").getBytes("ISO-8859-1"),"GBK");
if(errmsg!=null)
{
out.print(errmsg);
}
%>
</font>
<hr>
<form action=cookiedenglu1.jsp method=POST>
<table border=0>
<tr><td>姓名:</td><td><input type=text size=20 name=name></td>
<td><input type=submit name="提交" value="登录"></td></tr>
</table>
</form>
<a href="cookiedenglu2.jsp">会员专属网页</a>
</body>
</html>
提示错误
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.cookiedenglu_jsp._jspService(cookiedenglu_jsp.java:50)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
错误反应在程序里是这行:String errmsg=new String(request.getParameter("errmsg").getBytes("ISO-8859-1"),"GBK");
这行哪错了
<title>会员登录</title>
<%@page contentType="text/html;charset=gb2312"%>
<body>
<font size=5 color=green>登录画面</font>
<font color=red>
<%
String errmsg=new String(request.getParameter("errmsg").getBytes("ISO-8859-1"),"GBK");
if(errmsg!=null)
{
out.print(errmsg);
}
%>
</font>
<hr>
<form action=cookiedenglu1.jsp method=POST>
<table border=0>
<tr><td>姓名:</td><td><input type=text size=20 name=name></td>
<td><input type=submit name="提交" value="登录"></td></tr>
</table>
</form>
<a href="cookiedenglu2.jsp">会员专属网页</a>
</body>
</html>
提示错误
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.cookiedenglu_jsp._jspService(cookiedenglu_jsp.java:50)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
错误反应在程序里是这行:String errmsg=new String(request.getParameter("errmsg").getBytes("ISO-8859-1"),"GBK");
这行哪错了
澶у掼鎴戜篃鎯冲洖绛斾綘鍟婏紝鍙?槸鎴戞劅瑙変綘镟寸墰锛屾垜閮芥病链夌敤杩
链夋椂闂寸殑璇濆彲浠ヨ亰鑱婏紝鎴戠殑WW鏄?83151395