コード例 #1
0
 @Override
 public void commissionManagerClub(int clubNo, SocialPerson originPerson, SocialPerson nwPerson) {
   //
   memberDao.deleteClubManager(clubNo, originPerson.getEmail());
   memberDao.addClubMember(new ClubMember(clubNo, originPerson));
   memberDao.deleteClubMember(clubNo, nwPerson.getEmail());
   memberDao.addClubManager(new ClubManager(clubNo, nwPerson));
 }
コード例 #2
0
  @Override
  protected void process(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    //
    SocialPerson person = (SocialPerson) req.getSession().getAttribute("loginUser");
    String name = person.getName();
    req.setAttribute("name", name);
    req.setAttribute("comNo", req.getParameter("comNo"));
    req.setAttribute("clubNo", req.getParameter("clubNo"));

    RequestDispatcher dispatcher =
        req.getRequestDispatcher("/WEB-INF/views/club/clubJoinInput.jsp");
    dispatcher.forward(req, resp);
  }