jsp利用表单跳转到另一个jsp页面传参时中文显示乱码解决:
第一个jsp:
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
My JSP 'index.jsp' starting page请输入:
第2个jsp:
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
String search=request.getParameter("search");
out.println(search);
%>
这里有网友更详细的各式各样的乱码问题:http://www.cnblogs.com/chengkai/articles/2171848.html