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

request.getParameter()取值乱码
大家好,我到网上找了很多关于request.getParameter这个乱码的解决方法都对我这个小程序不管用,把程序贴出来,大家帮我看看
我的jsp页面是这样的
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@page import="com.hanke.dao.Muju"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%request.setCharacterEncoding("UTF-8"); %>
<title>设备及模具系统</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">

</script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
  <td height="30"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td height="62" background="images/nav04.gif">&nbsp;</td>
  </tr>
  </table></td></tr>
  <tr>
  <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
   
  <tr>
  <td height="40" class="font42">
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
<tr class="CTitle" >
  <td height="22" colspan="11" align="center" style="font-size:16px">设备一览表</td>
  </tr>
  <tr bgcolor="#EEEEEE">
<td height="22" align="center" >模具编号</td>
<td height="22" align="center" >模具名称</td>
<td height="22" align="center" >购买日期</td>
<td height="22" align="center" >价格</td>
<td height="22" align="center" >适应产品</td>
<td height="22" align="center" >确认人</td>
<td height="22" align="center" >使用部门</td>
<td height="22" align="center" >供应商</td>
<td height="22" align="center" >备注</td>
<td height="22" align="center" >操作</td>
  </tr>
<% List list=(List)request.getAttribute("list");
if(list!=null&&list.size()>0){
Iterator it = list.iterator();
while (it.hasNext()) {
Muju j = (Muju) it.next();

%>
<tr bgcolor="#FFFFFF">
<td height="22&q