private String write(HttpServletRequest req, HttpServletResponse res) throws IOException {
Member member = (Member)req.getSession().getAttribute("member");
String id = member.getId();
long sid = member.getSid();
Article article = new Article();
article.setId(id);
article.setSid(sid);
String writer = req.getParameter("writer");
String bbs = req.getParameter("bbs");
String content = req.getParameter("content");
String subject = req.getParameter("subject");
String homepage = req.getParameter("homepage");
String password = req.getParameter("password");
String ccl_id = req.getParameter("ccl_id");
article.setWriter(writer);
article.setBbs(bbs);
article.setContent(content);
article.setSubject(subject);
article.setHomepage(homepage);
article.setPassword(password);
article.setCcl_id(ccl_id);
new ArticleDao().write(article);
return article.getBbs();
}