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("/MMPC010") public class MMPC010 extends HttpServlet { private static final long serialVersionUID = 1L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String mmpc004 = request.getParameter("mmpc"); if(mmpc004.equals("calender")){ RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/jsp/MMPC004.jsp"); dispatcher.forward(request, response); }else if(mmpc004.equals("logout")){ RequestDispatcher dispatcher = request.getRequestDispatcher("/MMPC001.jsp"); dispatcher.forward(request, response); /*仮遷移*/ }else if(mmpc004.equals("touroku")){ RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/jsp/MMPC010.jsp"); dispatcher.forward(request, response); } } }