SelfRequestProcessor.java
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:

OA系统

开发平台:

Java

  1. package officeol.mc.actions;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.HttpServletRequest;
  4. import javax.servlet.http.HttpServletResponseWrapper;
  5. public class SelfRequestProcessor extends RequestProcessor {
  6.     public SelfRequestProcessor() {
  7.     }
  8.     protected boolean processPreprocess(HttpServletRequest request,HttpServletResponseWrapper response){
  9.         try{
  10.             request.setCharacterEncoding("GBK");
  11.         }catch(Exception ex){
  12.             ex.printStackTrace();
  13.         }
  14.         return true;
  15.     }
  16. }