?? myrequestprocessor.java
字號:
package com.softdevelopstudio.struts;
import org.apache.struts.action.*;
import java.io.*;
/**
* struts 請求處理器,在請求發生時,能對請求做一些預處理。 常見的如對編碼進行設置.
*
* @author lzx.
*/
public class MyRequestProcessor extends RequestProcessor {
protected boolean processPreprocess(
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) {
try {
request.setCharacterEncoding("gbk");
return true;
} catch (UnsupportedEncodingException ex) {
ex.printStackTrace();
}
return false;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -