From 9c53c34f61eb593a49dc99773aba8bf7f98bdbdd Mon Sep 17 00:00:00 2001
From: liudao-yupeng <569878028@qq.com>
Date: Thu, 21 Jul 2016 10:59:20 +0800
Subject: [PATCH] .
---
.../Se1413071001206Servlet.java | 84 ++++++++++++++++
jweb/web/1413071001206/index.jsp | 96 +++++++++++++++++++
2 files changed, 180 insertions(+)
create mode 100644 jweb/src/edu/hzu/javaweb/labs/se1413071001206/Se1413071001206Servlet.java
create mode 100644 jweb/web/1413071001206/index.jsp
diff --git a/jweb/src/edu/hzu/javaweb/labs/se1413071001206/Se1413071001206Servlet.java b/jweb/src/edu/hzu/javaweb/labs/se1413071001206/Se1413071001206Servlet.java
new file mode 100644
index 00000000..07f89be0
--- /dev/null
+++ b/jweb/src/edu/hzu/javaweb/labs/se1413071001206/Se1413071001206Servlet.java
@@ -0,0 +1,84 @@
+package edu.hzu.javaweb.labs.se1413071001206;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+ @WebServlet("/1413071001206")
+public class Se1413071001206Servlet extends HttpServlet {
+
+ /**
+ * Constructor of the object.
+ */
+ public Se1413071001206Servlet() {
+ super();
+ }
+
+ /**
+ * Destruction of the servlet.
+ */
+ public void destroy() {
+ super.destroy(); // Just puts "destroy" string in log
+ // Put your code here
+ }
+
+ /**
+ * The doGet method of the servlet.
+ *
+ * This method is called when a form has its tag value method equals to get.
+ *
+ * @param request the request send by the client to the server
+ * @param response the response send by the server to the client
+ * @throws ServletException if an error occurred
+ * @throws IOException if an error occurred
+ */
+ public void doGet(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException {
+
+ doPost(request,response);
+ }
+
+ /**
+ * The doPost method of the servlet.
+ *
+ * This method is called when a form has its tag value method equals to post.
+ *
+ * @param request the request send by the client to the server
+ * @param response the response send by the server to the client
+ * @throws ServletException if an error occurred
+ * @throws IOException if an error occurred
+ */
+ public void doPost(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException {
+
+ response.setContentType("text/html");
+ request.setCharacterEncoding("utf-8");
+ response.setCharacterEncoding("utf-8");
+ PrintWriter out = response.getWriter();
+ out.println("ύɹ");
+// out.println("");
+// out.println("");
+// out.println("