OpenArticleAction.java
上传用户:bjjsss
上传日期:2018-06-10
资源大小:4236k
文件大小:2k
源码类别:

SilverLight

开发平台:

Java

  1. package cn.com.blogonline;
  2. import java.io.IOException;
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. import javax.servlet.ServletConfig;
  6. import javax.servlet.ServletException;
  7. import javax.servlet.http.HttpServlet;
  8. import javax.servlet.http.HttpServletRequest;
  9. import javax.servlet.http.HttpServletResponse;
  10. import javax.servlet.http.HttpSession;
  11. public class OpenArticleAction extends HttpServlet {
  12.     
  13. public void init(ServletConfig config) throws ServletException {
  14.     }
  15.     
  16.     /*
  17.      *  澶勭悊<GET> 璇锋眰鏂规硶.
  18.      */
  19.     protected void doGet(HttpServletRequest request, HttpServletResponse response)
  20.     throws ServletException, IOException {
  21.      //璁剧疆鎺ユ敹淇℃伅鐨勫瓧绗﹂泦
  22.      request.setCharacterEncoding("UTF-8");
  23.      //鎺ユ敹娴忚