Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/app/bbs/ShowMessageWithTimeStampServlet.java @ 190:269bada9eedc
add
author | tatsuki |
---|---|
date | Fri, 17 Oct 2014 15:16:56 +0900 |
parents | 6f104ab4eb81 |
children | 3202a2a427b1 |
comparison
equal
deleted
inserted
replaced
189:8788cc341358 | 190:269bada9eedc |
---|---|
16 */ | 16 */ |
17 private static final long serialVersionUID = 1L; | 17 private static final long serialVersionUID = 1L; |
18 private final NetworkBulletinBoard bbs; | 18 private final NetworkBulletinBoard bbs; |
19 private final String createBoardMessagePath; | 19 private final String createBoardMessagePath; |
20 private final String editMessagePath; | 20 private final String editMessagePath; |
21 private final String showMatrixPath; | |
22 | 21 |
23 private static final String PARAM_BOARD_NAME = "bname"; | 22 private static final String PARAM_BOARD_NAME = "bname"; |
24 | 23 |
25 public ShowMessageWithTimeStampServlet(NetworkBulletinBoard _bbs, | 24 public ShowMessageWithTimeStampServlet(NetworkBulletinBoard _bbs, |
26 String _createBoardMessagePath, String _editMessagePath, String _showMatrixPath, | 25 String _createBoardMessagePath, String _editMessagePath,ThreadPool thp) { |
27 ThreadPool thp) { | |
28 bbs = _bbs; | 26 bbs = _bbs; |
29 showMatrixPath = _showMatrixPath; | |
30 createBoardMessagePath = _createBoardMessagePath; | 27 createBoardMessagePath = _createBoardMessagePath; |
31 editMessagePath = _editMessagePath; | 28 editMessagePath = _editMessagePath; |
32 } | 29 } |
33 | 30 |
34 public void doGet(HttpServletRequest _req, HttpServletResponse _res) { | 31 public void doGet(HttpServletRequest _req, HttpServletResponse _res) { |
50 | 47 |
51 _pw.write("<form action='" + createBoardMessagePath + "' method='POST'\n"); | 48 _pw.write("<form action='" + createBoardMessagePath + "' method='POST'\n"); |
52 _pw.write("<p>Author : <input type='text' name='author'/> <input type='hidden' name='bname' value='" +bbs.sanitize( _bname) + "'/> EditKey : <input type='textarea' name='key'/></p>\n"); | 49 _pw.write("<p>Author : <input type='text' name='author'/> <input type='hidden' name='bname' value='" +bbs.sanitize( _bname) + "'/> EditKey : <input type='textarea' name='key'/></p>\n"); |
53 _pw.write("<p>Message<br/> <input type='textarea' name='msg'/> </p>\n"); | 50 _pw.write("<p>Message<br/> <input type='textarea' name='msg'/> </p>\n"); |
54 _pw.write("<p><input type='submit' value='submit'/></p>\n"); | 51 _pw.write("<p><input type='submit' value='submit'/></p>\n"); |
55 _pw.write("<small><a href=" + showMatrixPath + "?bname=" + bbs.sanitize(_bname) + "&uuid= >MatrixMode"+"</a></small><br>"); | |
56 | 52 |
57 for (BoardMessage msg : bbs.getMessages(_bname)) {//フォルダの表示 | 53 for (BoardMessage msg : bbs.getMessages(_bname)) {//フォルダの表示 |
58 _pw.write("<hr/>"); | 54 _pw.write("<hr/>"); |
59 _pw.write("<p> Author <b>" + bbs.sanitize(msg.getAuthor()) + "</b></p>"); | 55 _pw.write("<p> Author <b>" + bbs.sanitize(msg.getAuthor()) + "</b></p>"); |
60 _pw.write("<small><a href=" + editMessagePath + "?bname=" + bbs.sanitize(_bname) | 56 _pw.write("<small><a href=" + editMessagePath + "?bname=" + bbs.sanitize(_bname) |