URL?action="done"で受け取ればelse if(true)
action次第fowardPathの行き先変更
forwardPath_action.java
String forwardPath = null;
String action = request.getParameter("action");
if(action == null) {
forwardPath = "/WEB-INF/jsp/registerForm.jsp";
}else if(action.equals("done")){
forwardPath = "/WEB-INF/jsp/registerDone.jsp";
}
RequestDispatcher done = request.getRequestDispatcher(forwardPath);
done.forward(request, response);
}