Show pdSuccess.jsp syntax highlighted
<%--
* Copyright (C) 2002-2004 Ping Identity Corporation. All rights reserved.
*
* Licensed under the Open Software License version 2.1
*
* A copy of this license has been provided with the distribution of this
* software. Additionally, a copy of this license is available at:
* http://www.pingidentity.com/license
--%>
<%@ page import="fi.hip.gb.gridlib.gridsp.userbase.PortalUser"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body onload="javascript:document.forms[0].submit()">
<br>Redirecting to <%=(String)request.getAttribute("RedirectURL") %>, Please wait...<br>
<form method="post" action="<%=(String)request.getAttribute("RedirectURL") %>">
<%
String username = (String)request.getAttribute("USERNAME");
String password = "";
String cashing = (String)request.getAttribute("GridChequeCashing");
String streamLength = (String)request.getAttribute("StreamLength");
String ip = (String)request.getAttribute("ip");
String port = (String)request.getAttribute("port");
System.out.println("Tester.jsp: username = " + username + " ip = " + ip + " port = " + port + " Redirect: " + (String)request.getAttribute("RedirectURL"));
if (username != null) {
PortalUser user = new PortalUser();
user = user.getUserByName(username);
password = user.getPassword();
%>
<input type="hidden" name="username" value="<c:out value='${USERNAME}'/>">
<input type="hidden" name="password" value="<%= password %>"/>
<% }
if (cashing != null) {
%>
<input type="hidden" name="cashing" value="<%= cashing %>"/>
<input type="hidden" name="streamLength" value="<%= streamLength %>"/>
<input type="hidden" name="ip" value="<%= ip %>"/>
<input type="hidden" name="port" value="<%= port %>"/>
<% }
%>
<input type="submit" value="Submit"/>
</form>
</body>
</html>
See more files for this project here