|
fig filterConfig = null;
protected boolean ignore = true;
public void destroy() {
this.encoding = null; this.filterConfig = null;
}
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
// Conditionally select and set the character encoding to be used if (ignore || (request.getCharacterEncoding() == null)) { String encoding = selectEncoding(request); if (encoding != null) { request.setCharacterEncoding(encoding); //就是这句话在工作的啦,哈哈,它:Overrides 上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
|