comparison src/main/java/jp/ac/u_ryukyu/ie/cr/bbs/network/ShowMessageWithTimeStampServlet.java @ 4:5acde010c6db

add jungle browsing system
author tatsuki
date Tue, 28 Jun 2016 19:45:55 +0900
parents f3d30646c863
children
comparison
equal deleted inserted replaced
3:f3d30646c863 4:5acde010c6db
47 _pw.write("<form action='" + createBoardMessagePath + "' method='POST'\n"); 47 _pw.write("<form action='" + createBoardMessagePath + "' method='POST'\n");
48 _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"); 48 _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>Message<br/> <input type='textarea' name='msg'/> </p>\n"); 49 _pw.write("<p>Message<br/> <input type='textarea' name='msg'/> </p>\n");
50 _pw.write("<p><input type='submit' value='submit'/></p>\n"); 50 _pw.write("<p><input type='submit' value='submit'/></p>\n");
51 51
52 GetAttributeImp attribute = bbs.getAttribute(_bname, "[-1]", "0"); 52 GetAttributeImp attribute = bbs.getAttribute(_bname, "[-1]","1");
53 Iterator<String> keys = attribute.getKeys(); 53 Iterator<String> keys = attribute.getKeys();
54 54
55 while (keys.hasNext()) { 55 while (keys.hasNext()) {
56 String key = keys.next(); 56 String key = keys.next();
57 String mesage = attribute.getMessage(key); 57 String mesage = attribute.getMessage(key);