Here is my code to handle one url redirect but how do I implement two url redirects based on the user's url?
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
import="com.example.common.config.RuntimeConfig" %>
<html>
<head>
<%
response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0);
%>
</head>
<body>
<%
String loginURL = RuntimeConfig
.getProperty("example.callback.url").asString();
// if (request.getSession() != null)
// {
// request.getSession().invalidate();
// }
//Take the user back to the login page
response.sendRedirect(loginURL);
%>
</body>
</html>