Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
セッションのログアウト時に、ページは にリダイレクトされlogin.jspます。
login.jsp
使用すると login.jsp にリダイレクトされますrequest.getRequestDispatcher("../login.jsp").forward(request, response)が、URL は変更されません。
request.getRequestDispatcher("../login.jsp").forward(request, response)
URLも変更してログインページにリダイレクトするにはどうすればよいですか?
ありがとう
あなたが使用する必要があります
response.sendRedirect("/yourcontextPath/login.jsp);
見る