# HG changeset patch
# User one
# Date 1376987889 -32400
# Node ID 29127ac788a65d2768cb44fc73bd122baf5b134a
# Parent ebf42371454bae7f27a86c94058885506c79e546
move some files
diff -r ebf42371454b -r 29127ac788a6 .classpath
--- a/.classpath Wed Aug 14 17:44:09 2013 +0900
+++ b/.classpath Tue Aug 20 17:38:09 2013 +0900
@@ -1,6 +1,7 @@
edit message
");
+ pw.write("
Message
"+msg.getAuthor()+"
"); + _pw.write(""+msg.getMessage()+"
"); + _pw.write("edit"); + } + + _pw.write(""); + _pw.flush(); + } +} diff -r ebf42371454b -r 29127ac788a6 src/jungle/app/bbs/ShowBoardsServlet.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/app/bbs/ShowBoardsServlet.java Tue Aug 20 17:38:09 2013 +0900 @@ -0,0 +1,55 @@ +package jungle.app.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
Message
Message
"+msg.getAuthor()+"
"); - _pw.write(""+msg.getMessage()+"
"); - _pw.write("edit"); - } - - _pw.write(""); - _pw.flush(); - } -} diff -r ebf42371454b -r 29127ac788a6 src/jungle/test/bbs/ShowBoardsServlet.java --- a/src/jungle/test/bbs/ShowBoardsServlet.java Wed Aug 14 17:44:09 2013 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -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