Tomcat8080端口占用及前台传中文到后台乱编

来源:互联网 发布:手机身份证读取软件 编辑:程序博客网 时间:2024/06/05 02:08

Eclipse跑项目时崩溃导致Tomcat没有正常关闭

任务管理器结束

javaw.exe关闭即可


jsp传值到后台乱码或者???

首先:jsp中

<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"  import="java.util.ArrayList" import="fourkings.Information"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
在servlet中添加过滤器
错 :  response.setContentType("text/html; charset=UTF-8"); //这个错误!!!非response!!
对 :  request.setCharacterEncoding("UTF-8");