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; @WebServlet("/MMPC001") public class MMPC001 extends HttpServlet { private static final long serialVersionUID = 1L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String mmpc001 = request.getParameter("mmpc"); if (mmpc001.equals("shinki")) { RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/jsp/MMPC002.jsp"); dispatcher.forward(request, response); } else if (mmpc001.equals("rogin")) { RequestDispatcher dispatcher = request.getRequestDispatcher("/WEB-INF/jsp/MMPC003.jsp"); dispatcher.forward(request, response); } } }