diff --git a/jweb/src/edu/hzu/javaweb/labs/se1414080902224/Se1414080902224Servlet.java b/jweb/src/edu/hzu/javaweb/labs/se1414080902224/Se1414080902224Servlet.java new file mode 100644 index 00000000..e073fe49 --- /dev/null +++ b/jweb/src/edu/hzu/javaweb/labs/se1414080902224/Se1414080902224Servlet.java @@ -0,0 +1,51 @@ +package edu.hzu.javaweb.labs.se1414080902224; + +import java.io.IOException; +import java.io.PrintWriter; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +@WebServlet("/1414080902224") +public class Se1414080902224Servlet extends HttpServlet { + + + private static final long serialVersionUID = 1L; + + + public Se1414080902224Servlet() { + super(); + } + + + public void destroy() { + super.destroy(); // Just puts "destroy" string in log + // Put your code here + } + + + public void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + + response.setContentType("text/html"); + PrintWriter out = response.getWriter();; + out.println("ok"); + + } + + + public void doPost(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + response.setContentType("text/html"); + PrintWriter out = response.getWriter();; + out.println("ok"); + } + + + public void init() throws ServletException { + // Put your code here + } + +} diff --git a/jweb/web/1414080902224/web.xml b/jweb/web/1414080902224/web.xml new file mode 100644 index 00000000..5086ee48 --- /dev/null +++ b/jweb/web/1414080902224/web.xml @@ -0,0 +1,18 @@ + + + + This is the description of my J2EE component + This is the display name of my J2EE component + Se1414080902224Servlet + edu.hzu.javaweb.labs.se1414080902224.Se1414080902224Servlet + + + + Se1414080902224Servlet + /1414080902224 + + + \ No newline at end of file diff --git a/labs/1414080902224/index.html b/labs/1414080902224/index.html index cb38fd42..915db43d 100644 --- a/labs/1414080902224/index.html +++ b/labs/1414080902224/index.html @@ -1,9 +1,6 @@ - - - - 选择电影类别 - + +发布笔记 @@ -16,18 +13,12 @@ - - - - 欢迎光临
-
- 请您选择要观看的电影类别:
- - -
- + + +
+ 发表笔记:
+ + +
+ \ No newline at end of file diff --git a/labs/1414080902224/index.js b/labs/1414080902224/index.js index a75b7196..5d6e311b 100644 --- a/labs/1414080902224/index.js +++ b/labs/1414080902224/index.js @@ -1,6 +1,6 @@ 锘$(function(){ $( ".btn" ).click(function( event ) { - alert( "纭畾" ); + alert( "ok" ); $.ajax({ url: "ok.json" }).done(function(data) { diff --git a/labs/1414080902224/index.jsp b/labs/1414080902224/index.jsp new file mode 100644 index 00000000..f9276707 --- /dev/null +++ b/labs/1414080902224/index.jsp @@ -0,0 +1,26 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + + +鍙戝竷绗旇 + + + + + + + + + + + + + + +
+ 鍙戣〃绗旇:
+ + +
+ + \ No newline at end of file