我这有一段简单的代码:
<%-- 使用此语句处理显示中的乱码 --%>
<%@page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>include demo</title>
</head>
<body>
<%@include file="incl.jsp"%>
<%@include file="incl.txt"%>
<%@include file="incl.inc"%>
</body>
</html>
用Tomcat6运行,结果显示,如下:
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.(DefaultErrorHandler.java:51)
org.apache.(ErrorDispatcher.java:409)
org.apache.(ErrorDispatcher.java:116)
org.apache.(JspUtil.java:1048)
org.apache.(ParserController.java:210)
org.apache.(ParserController.java:102)
org.apache.(Compiler.java:167)
org.apache.(Compiler.java:306)
org.apache.(Compiler.java:286)
org.apache.(Compiler.java:273)
org.apache.jasper.(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
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.10 logs.
怎么办啊?拜托了各位!