package servlet; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class MMPC010 */ @WebServlet("/MMPC007") public class MMPC007 extends HttpServlet { private static final long serialVersionUID = 1L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String mmpc007 = request.getParameter("mmpc"); if(mmpc007.equals("calender")){ RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/jsp/MMPC004.jsp"); dispatcher.forward(request, response); }else if(mmpc007.equals("project")) { RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/jsp/MMPC008.jsp"); dispatcher.forward(request, response); }else if(mmpc007.equals("logout")){ RequestDispatcher dispatcher = request.getRequestDispatcher("/MMPC001.jsp"); dispatcher.forward(request, response); /*DBに登録処理消去処理*/ } } }