日期:2014-05-17  浏览次数:20673 次

jsp让人都疼的乱码!!!!
我传给sturs2action的值全部成了问号,过滤也配置了 编码统一是gb2312 tomcat6.0 server.XML也配置了 什么原因啊????









<%@ page language="java" import="java.util.*" pageEncoding="GB2312" %>
<%@page import="freemarker.template.SimpleDate"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/quit.js"></script>
</head>
<html>
<body>
<%

SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm");

String time= sdf.format(new Date());

String javavm=System.getProperty("java.vm.name");

String jdk=System.getProperty("java.specification.version");

String serversystem=System.getProperty("os.name");

String serverjg=System.getProperty("os.arch");

String username=System.getProperty("user.name");

String url=System.getProperty("user.dir");
%>
<div align="center">
<table width="933" border="0" cellpadding="0" cellspacing="0" class="loyouttable">
<!--DWLayoutTable-->
<!--页头背景-->
<tr>
<td width="933" height="162" background="images/title.gif">&nbsp;</td>
</tr>
</table>
</div>
<div align="center">
<table width="933" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
<!--DWLayoutTable-->
<tr>
<td width="933" height="6" class="jianbiantiao"></td>
</tr>
</table>
</div>
<div align="center">
<table width="933" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
<td width="933" height="38" align="left" valign="middle" class="daohang">当前管理员: ${userinfo} 当前时间:<%=time%></td>
</tr>
</table>
</div>

<div align="justify"></div>
<div align="center">
<table width="933" border="0" cellpadding="0" cellspacing="0" class="info">
<!--DWLayoutTable-->
<tr>
<td height="36" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="889" height="36" class="menuc">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td width="244" rowspan="6" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">