From fbb59fd7c1c6481816b17fa13e352c2dee469407 Mon Sep 17 00:00:00 2001 From: javajigi Date: Wed, 25 Sep 2013 17:04:46 +0900 Subject: [PATCH] =?UTF-8?q?9=EC=9B=94=2025=EC=9D=BC=20=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nhnnext/web/BoardController.java | 19 +++++++++++++++++++ webapp/form.jsp | 19 +++++++++++++++++++ webapp/index.jsp | 12 ++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 src/main/java/org/nhnnext/web/BoardController.java create mode 100644 webapp/form.jsp create mode 100644 webapp/index.jsp diff --git a/src/main/java/org/nhnnext/web/BoardController.java b/src/main/java/org/nhnnext/web/BoardController.java new file mode 100644 index 0000000..a03f18d --- /dev/null +++ b/src/main/java/org/nhnnext/web/BoardController.java @@ -0,0 +1,19 @@ +package org.nhnnext.web; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +@Controller +public class BoardController { + @RequestMapping("/board/form") + public String form() { + return "form"; + } + + @RequestMapping(value="/board", method=RequestMethod.POST) + public String create(String id, String article) { + System.out.println("id : " + id + " article : " + article); + return "redirect:/"; + } +} diff --git a/webapp/form.jsp b/webapp/form.jsp new file mode 100644 index 0000000..6f10402 --- /dev/null +++ b/webapp/form.jsp @@ -0,0 +1,19 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Insert title here + + +

글쓰기 화면 임다

+
+
+ 제목 :
+
+ +
+
+ + \ No newline at end of file diff --git a/webapp/index.jsp b/webapp/index.jsp new file mode 100644 index 0000000..e89941b --- /dev/null +++ b/webapp/index.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Insert title here + + + 글쓰기 + + \ No newline at end of file