数据库改用gbk编码就可以了
把第一句改为<%@page contentType="text/html;charset=GBK"%>
String name = new String(request.getParameter("name).getBytes("ISO8859_1"),"GBK");
String name=new String(request.getParameter("name").getBytes("iso8859-1"),"GB2312");