# HG changeset patch
# User one
# Date 1373282758 -32400
# Node ID d8ee57a1c2c6885cedb129a4e76ace7de29c8144
# Parent ed4c2e6ab5d1e591e2ec7e0d70af9a40e3ec718b
add pom.xml and bbs
diff -r ed4c2e6ab5d1 -r d8ee57a1c2c6 .classpath
--- a/.classpath Mon Jul 08 20:10:47 2013 +0900
+++ b/.classpath Mon Jul 08 20:25:58 2013 +0900
@@ -1,15 +1,26 @@
edit message
");
+ pw.write("
Message
"+msg.getAuthor()+"
"); + _pw.write(""+msg.getMessage()+"
"); + _pw.write("edit"); + } + + _pw.write(""); + _pw.flush(); + } +} diff -r ed4c2e6ab5d1 -r d8ee57a1c2c6 src/jungle/test/bbs/ShowBoardsServlet.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/bbs/ShowBoardsServlet.java Mon Jul 08 20:25:58 2013 +0900 @@ -0,0 +1,55 @@ +package jungle.test.bbs; + +import java.io.PrintWriter; + +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public class ShowBoardsServlet extends HttpServlet +{ + /** + * + */ + private static final long serialVersionUID = 1L; + private final BulletinBoard bbs; + private final String createBoardPath; + private final String showBoardMessagePath; + + public ShowBoardsServlet(BulletinBoard _bbs, String _createBoardPath,String _showBoardMessagePath) + { + bbs = _bbs; + createBoardPath = _createBoardPath; + showBoardMessagePath = _showBoardMessagePath; + } + + public void doGet(HttpServletRequest _req,HttpServletResponse _res) + { + try{ + printBoard(_res.getWriter()); + }catch(Exception _e){ + _res.setStatus(500); + } + + } + + private void printBoard(PrintWriter _pw) throws Exception + { + _pw.write("\n"); + _pw.write("BoardName :
\n"); + _pw.write("Author : EditKey :
\n"); + _pw.write("Message