Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
<a href=”https://www.example.com/sspr/public/ForgottenPassword”>Forgotten Password</a>
<%
// set these parameters as appropriate for your environment
final String ssprURL = "http://www.example.com/sspr/";
final String ssprCommand = "checkAll";
// could be "checkExpire", "checkResponses", "checkProfile" or "checkAll"
// see sspr documentation
final boolean debugMode = true;
String ctarget = null;
// do not modify the below code unless you know what you are doing.
String currentTarget = (String)request.getAttribute("target");
if (debugMode) {
out.write("<p>Current target: " currentTarget "</p>");
out.write("<p>Current ctarget: " request.getAttribute("ctarget") "</p>");
}
if (currentTarget != null && !currentTarget.contains(ssprURL)) {
final StringBuilder newURL = new StringBuilder();
newURL.append(ssprURL);
newURL.append("/private/CommandServlet");
newURL.append("?processAction=");
newURL.append(ssprCommand);
newURL.append("&forwardURL=");
newURL.append(java.net.URLEncoder.encode(currentTarget,"UTF-8"));
//request.setAttribute("target",null);
//session.setAttribute("target",);
ctarget = newURL.toString();
if (debugMode) {
out.write("<p>New target set to: " newURL.toString() "</p>");
}
} else if (debugMode) {
out.write("<p>Target already redirected to SSPR, was not modified.</p>");
}
%>
<% if (ctarget != null) { %>
<input type="hidden" name="ctarget" value="<%=ctarget%>">
<% } %>