- public void doGet(HttpServletRequest request, HttpServletResponse response)
- throws ServletException, IOException {
- test1(response);
- }
- private void test1(HttpServletResponse response) throws IOException,
- UnsupportedEncodingException {
-
-
- String data = "中国";
-
- PrintWriter out = response.getWriter();
-
- out.print(data);
- out.flush();
-
- out.close();
- }
复制代码 |
|