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");

posted @ 2017-02-28 11:18  非非是  阅读(575)  评论(0编辑  收藏  举报