Created
May 2, 2018 12:26
-
-
Save ghusta/b91e1a0bb9b59f3bf7e434f870d4066c to your computer and use it in GitHub Desktop.
JSP redirection preserving parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true" %> | |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<c:redirect url="/login.jsp"> | |
<c:forEach items="${param}" var="entry"> | |
<c:param name="${entry.key}" value="${entry.value}" /> | |
</c:forEach> | |
</c:redirect> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to HttpServletResponse#sendRedirect(...)