标签:har serial oid style tco http end htm pac
1 package ${enclosing_package}; 2 3 import java.io.IOException; 4 import javax.servlet.ServletException; 5 import javax.servlet.http.HttpServlet; 6 import javax.servlet.http.HttpServletRequest; 7 import javax.servlet.http.HttpServletResponse; 8 9 10 public class ${primary_type_name} extends HttpServlet { 11 private static final long serialVersionUID = 1L; 12 13 protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 14 request.setCharacterEncoding("UTF-8"); 15 response.setContentType("text/html; charset=UTF-8"); 16 } 17 18 protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 doGet(request, response); 20 } 21 22 }
标签:har serial oid style tco http end htm pac
原文地址:http://www.cnblogs.com/ixan/p/7684633.html