这两天跟汉字问题较上劲了,真是考验基本功
1. ${param.userName} 乱码
解决方法:
<%String name = (String)request.getParameter("userName");name=new String(name.getBytes("iso-8859-1"),"utf-8");request.setAttribute("userName", name);%>