怎么老出现上标题上的错误啊?如何解决》????求助
怎么老出现上标题上的错误啊?如何解决》????求助
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unsupported encoding: GB2312 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) org.apache.jasper.compiler.JspUtil.getReader(JspUtil.java:1059) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
多谢各位了
红色地方改成"gb2312"或"GBK"
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<html>
<head>
<title>登陆页面</title>
<script language="javascript">
function subm()
{
if(f.un.value=="")
{
alert("登陆账号不能为空!");
}
else if(f.up.value=="")
{
alert("登陆密码不能为空!");
}
else
{
f.action="/news/servlet/LoginServlet";
f.submit();
}
}
</script>
</head>
<body>
<form name=f method=post align=center>
登陆账号:<input type=text name=un><br>
登陆密码:<input type=password name=up><br>
<input type=button name=sub value="登陆" onclick="subm()">
<input type=reset name=res value="清空">
</form>
</body>
</html>