jsp获取传过来的值

request.setCharacterEncoding("utf-8");

String credit=request.getParameter("credit");

String major=new String(request.getParameter("major").getBytes("ISO-8859-1"),"utf-8");

action中:

this.major = new String(major.getBytes("iso-8859-1"),"utf-8");

原文地址:https://www.cnblogs.com/feifeishi/p/6478023.html