<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>曲发年少</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<%@ include file="include/header.jsp"%>
<%
request.setCharacterEncoding("gb2312");
String name=request.getParameter("name");
String pass=request.getParameter("passwd");
String cont=request.getParameter("content");
%>
<br><%=name%>
<br><%=pass%>
<br><%=cont%>
<%@ include file="include/footer.jsp"%>
</div>
</body>
</html>
Jsp 提交表单乱码
最新推荐文章于 2025-04-13 22:12:03 发布