1. doPost方法设置响应编码格式
request.setCharacterEncoding("utf-8");
response.setContentType("text/html;charsest=UTF-8");
chain.doFilter(request, response);
2.重定向
response.sendRedirect("/hello.jsp");
1. doPost方法设置响应编码格式
request.setCharacterEncoding("utf-8");
response.setContentType("text/html;charsest=UTF-8");
chain.doFilter(request, response);
2.重定向
response.sendRedirect("/hello.jsp");