Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/app/bbs/ShowMessageWithTimeStampServlet.java @ 168:91f6dd655a01
refactoring
author | tatsuki |
---|---|
date | Tue, 29 Jul 2014 10:58:11 +0900 |
parents | 564f683b7aef |
children | e30880a72909 |
comparison
equal
deleted
inserted
replaced
167:564f683b7aef | 168:91f6dd655a01 |
---|---|
43 private void printBoard(String _bname, PrintWriter _pw) throws Exception { | 43 private void printBoard(String _bname, PrintWriter _pw) throws Exception { |
44 _pw.write("<html><body>\n"); | 44 _pw.write("<html><body>\n"); |
45 _pw.write("<h1>" + _bname + "</h1>\n"); | 45 _pw.write("<h1>" + _bname + "</h1>\n"); |
46 _pw.write("<p>Latest renew time : " + bbs.getRenewTime(_bname) | 46 _pw.write("<p>Latest renew time : " + bbs.getRenewTime(_bname) |
47 + "</p>\n"); | 47 + "</p>\n"); |
48 | 48 ; |
49 _pw.write("<form action='" + createBoardMessagePath | 49 |
50 + "' method='POST'\n"); | 50 _pw.write("<form action='" + createBoardMessagePath + "' method='POST'\n"); |
51 _pw.write("<p>Author : <input type='text' name='author'/> <input type='hidden' name='bname' value='" | 51 _pw.write("<p>Author : <input type='text' name='author'/> <input type='hidden' name='bname' value='" + _bname + "'/> EditKey : <input type='text' name='key'/></p>\n"); |
52 + _bname | |
53 + "'/> EditKey : <input type='text' name='key'/></p>\n"); | |
54 _pw.write("<p>Message<br/> <input type='textarea' name='msg'/> </p>\n"); | 52 _pw.write("<p>Message<br/> <input type='textarea' name='msg'/> </p>\n"); |
55 _pw.write("<p><input type='submit' value='submit'/></p>\n"); | 53 _pw.write("<p><input type='submit' value='submit'/></p>\n"); |
56 | 54 _pw.write("<small><a href=" + showMatrixPath + "?bname=" + _bname + "&uuid= >MatrixMode"+"</a></small><br>"); |
57 | 55 |
58 for (BoardMessage msg : bbs.getMessages(_bname)) {//フォルダの表示 | 56 for (BoardMessage msg : bbs.getMessages(_bname)) {//フォルダの表示 |
59 _pw.write("<hr/>"); | 57 _pw.write("<hr/>"); |
60 _pw.write("<p><b>" + msg.getAuthor() + "</b></p>"); | 58 _pw.write("<p> Author <b>" + msg.getAuthor() + "</b></p>"); |
61 _pw.write("<p>" + msg.getMessage() + "</p>"); | 59 _pw.write("<small><a href=" + editMessagePath + "?bname=" + _bname |
62 _pw.write("<small><a href=" + showMatrixPath + "?bname=" + _bname | 60 + "&uuid=" + msg.getUUID() + ">"+ msg.getMessage() +"</a></small><br>"); |
63 + "&uuid=0" + ">"+msg.getMessage()+"(show matrix)"+"</a></small><br>"); | |
64 _pw.write("<small><a href='" + editMessagePath + "?bname=" + _bname | |
65 + "&uuid=" + msg.getUUID() + "'>edit</a></small>"); | |
66 } | 61 } |
67 | 62 |
68 //forコメントの表示 | 63 //forコメントの表示 |
69 _pw.write("</body></html>"); | 64 _pw.write("</body></html>"); |
70 _pw.flush(); | 65 _pw.flush(); |