jsp文件内容如下
<html>
<head>
<%@ page language="java" contentType="text/html; charset=GB2313" %>
<%@ page import="java.util.*" %>
<title>Hello</title>
</head>
<body>
<% Date now = new Date(); %>
<%="hello,welcom"%>
<br/>
<%
out.print("now time is: ");
out.print(now);
%>
</body>
</html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=GB2313" %>
<%@ page import="java.util.*" %>
<title>Hello</title>
</head>
<body>
<% Date now = new Date(); %>
<%="hello,welcom"%>
<br/>
<%
out.print("now time is: ");
out.print(now);
%>
</body>
</html>
应该是GB2312
异常已经清楚的告你拉
exception org.apache.jasper.JasperException: Unsupported encoding: GB2313
org.apache.jasper.compiler.DefaultErrorHandler.jspError
就没有必要建web.xml
就没有必要建web.xml