Mercurial > hg > Database > jungle-network
view src/main/java/app/bbs/thinks/createAttributeMatrix.java @ 176:6f104ab4eb81
fit jungle core but editMessage is not work
author | tatsuki |
---|---|
date | Mon, 01 Sep 2014 00:04:32 +0900 |
parents | 066f58e93a14 |
children |
line wrap: on
line source
package app.bbs.thinks; import java.io.PrintWriter; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import app.bbs.NetworkBulletinBoard; public class createAttributeMatrix extends HttpServlet { private final NetworkBulletinBoard bbs; private static final String PARAM_BOARD_NAME = "bname"; private static final String PARAM_NODE_PATH = "path"; private static final String PARAM_BOARD_AUTHOR = "author"; private static final String PARAM_BOARD_MESSAGE= "msg"; private static final String PARAM_BOARD_EDITKEY = "key"; private static final long serialVersionUID = 1L; public createAttributeMatrix(NetworkBulletinBoard _bbs) { bbs = _bbs; } public void doPost(HttpServletRequest _req,HttpServletResponse _res) { String boardName = (_req.getParameter(PARAM_BOARD_NAME)); String author = (_req.getParameter(PARAM_BOARD_AUTHOR));//not use String msg = (_req.getParameter(PARAM_BOARD_MESSAGE)); String key = (_req.getParameter(PARAM_BOARD_EDITKEY)); // not use String uuid = (_req.getParameter(PARAM_NODE_PATH)); try{ bbs.createAttribute(boardName, uuid, author, msg, key); PrintWriter pw = _res.getWriter(); pw.write("successfully written"); pw.flush(); }catch(Exception _e){ _res.setStatus(500); } } }