membership.jsp revision 38a779b2bdf1bbdaeba2efc810d5c3a68655e462
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett<%--
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
e071fb22ea9923a2a4ff41184d80ca46b55ee932Till Mossakowski
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett The contents of this file are subject to the terms
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett of the Common Development and Distribution License
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett (the License). You may not use this file except in
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett compliance with the License.
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett You can obtain a copy of the License at
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett https://opensso.dev.java.net/public/CDDLv1.0.html or
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett opensso/legal/CDDLv1.0.txt
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett See the License for the specific language governing
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett permission and limitations under the License.
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett When distributing Covered Code, include this CDDL
20ed727452613e36c0a95ddabf7ecc81cf941ed2Andy Gimblett Header Notice in each file and include the License file
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett at opensso/legal/CDDLv1.0.txt.
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett If applicable, add the following below the CDDL Header,
f909337bf7012aca169c0b56b89efbd4a310f8daAndy Gimblett with the fields enclosed by brackets [] replaced by
9f93b2a8b552789cd939d599504d39732672dc84Christian Maeder your own identifying information:
9f93b2a8b552789cd939d599504d39732672dc84Christian Maeder "Portions Copyrighted [year] [name of copyright owner]"
f909337bf7012aca169c0b56b89efbd4a310f8daAndy Gimblett
04ceed96d1528b939f2e592d0656290d81d1c045Andy Gimblett $Id: membership.jsp,v 1.9 2008/12/23 21:24:32 ericow Exp $
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett Portions Copyrighted 2012-2014 ForgeRock AS.
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett--%>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett<html xmlns="http://www.w3.org/1999/xhtml">
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <%@page info="Membership" language="java"%>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <%@taglib uri="/WEB-INF/auth.tld" prefix="auth"%>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <jato:useViewBean className="com.sun.identity.authentication.UI.LoginViewBean">
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <%@ page contentType="text/html" %>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <%@ page import = "org.owasp.esapi.ESAPI" %>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <head>
20ed727452613e36c0a95ddabf7ecc81cf941ed2Andy Gimblett <title><jato:text name="htmlTitle_Membership" /></title>
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett <%
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett String ServiceURI = (String) viewBean.getDisplayFieldValue(viewBean.SERVICE_URI);
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett String encoded = "false";
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett String gotoURL = (String) viewBean.getValidatedInputURL(
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett request.getParameter("goto"), request.getParameter("encoded"), request);
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett if ((gotoURL != null) && (gotoURL.length() != 0)) {
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett encoded = "true";
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett }
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett %>
2f06b54890375b6cac90394b80b07bd451d728fcAndy Gimblett <link href="<%= ServiceURI%>/css/new_style.css" rel="stylesheet" type="text/css" />
2f06b54890375b6cac90394b80b07bd451d728fcAndy Gimblett <!--[if IE 9]> <link href="<%= ServiceURI%>/css/ie9.css" rel="stylesheet" type="text/css"> <![endif]-->
2f06b54890375b6cac90394b80b07bd451d728fcAndy Gimblett <!--[if lte IE 7]> <link href="<%= ServiceURI%>/css/ie7.css" rel="stylesheet" type="text/css"> <![endif]-->
2f06b54890375b6cac90394b80b07bd451d728fcAndy Gimblett <script language="JavaScript" src="<%= ServiceURI%>/js/auth.js" type="text/javascript"></script>
2f06b54890375b6cac90394b80b07bd451d728fcAndy Gimblett <jato:content name="validContent">
2f06b54890375b6cac90394b80b07bd451d728fcAndy Gimblett <script language="JavaScript" type="text/javascript">
a09bfcbcb0fba5663fca1968aa82daebf2e092c4Andy Gimblett <!--
ac5ec613b786cd05f495b568ab5214c31a333e67Andy Gimblett var defaultBtn = 'Submit';
a09bfcbcb0fba5663fca1968aa82daebf2e092c4Andy Gimblett var elmCount = 0;
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett /** submit form with default command button */
020cdb5dad6b871aba61136a0e1567c00426de87Andy Gimblett function defaultSubmit() {
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder LoginSubmit(defaultBtn);
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder }
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder /**
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder * submit form with given button value
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder *
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder * @param value of button
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder */
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder function LoginSubmit(value) {
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder aggSubmit();
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder var hiddenFrm = document.forms['Login'];
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder if (hiddenFrm != null) {
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder hiddenFrm.elements['IDButton'].value = value;
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder if (this.submitted) {
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder alert("The request is currently being processed");
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder }
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder else {
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder this.submitted = true;
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder hiddenFrm.submit();
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder }
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder }
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder }
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder -->
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder </script>
12b2ae689353ecbaad720a9af9f9be01c1a3fe2dChristian Maeder </jato:content>
</head>
<body onload="placeCursorOnFirstElm();">
<div class="container_12">
<div class="grid_4 suffix_8">
<a class="logo" href="<%= ServiceURI%>"></a>
</div>
<div class="box clear-float">
<div class="grid_3">
<div class="product-logo"></div>
</div>
<div class="grid_9 left-seperator">
<div class="box-content clear-float">
<jato:content name="ContentStaticTextHeader">
<h1><jato:getDisplayFieldValue name='StaticTextHeader'
defaultValue='Authentication' fireDisplayEvents='true'
escape='false'/></h1>
</jato:content>
<jato:content name="validContent">
<jato:tiledView name="tiledCallbacks"
type="com.sun.identity.authentication.UI.CallBackTiledView">
<script language="javascript" type="text/javascript">
<!--
elmCount++;
-->
</script>
<jato:content name="textBox">
<form name="frm<jato:text name="txtIndex" />" action="blank"
onsubmit="defaultSubmit(); return false;" method="post">
<div class="row">
<label for="IDToken<jato:text name="txtIndex" />">
<jato:text name="txtPrompt" defaultValue="User name:" escape="false" />
<jato:content name="isRequired">
<img src="<%= ServiceURI %>/images/required.gif" alt="Required Field"
title="Required Field" width="7" height="14" />
</jato:content>
</label>
<input class="textbox" type="text" name="IDToken<jato:text name="txtIndex" />" id="IDToken<jato:text name="txtIndex" />" value="<jato:text name="txtValue" />" />
</div>
</form>
</jato:content>
<jato:content name="password">
<form name="frm<jato:text name="txtIndex" />" action="blank"
onsubmit="defaultSubmit(); return false;" method="post">
<div class="row">
<label for="IDToken<jato:text name="txtIndex" />">
<jato:text name="txtPrompt" defaultValue="Password:" escape="false" />
<jato:content name="isRequired">
<img src="<%= ServiceURI %>/images/required.gif" alt="Required Field"
title="Required Field" width="7" height="14" />
</jato:content>
</label>
<input class="textbox" type="password" name="IDToken<jato:text name="txtIndex" />" id="IDToken<jato:text name="txtIndex" />" value="" />
</div>
</form>
</jato:content>
<jato:content name="choice">
<form name="frm<jato:text name="txtIndex" />" action="blank"
onsubmit="defaultSubmit(); return false;" method="post">
<div class="row">
<label for="IDToken<jato:text name="txtIndex" />">
<jato:text name="txtPrompt" defaultValue="RadioButton:" escape="false" />
<jato:content name="isRequired">
<img src="<%= ServiceURI %>/images/required.gif" alt="Required Field"
title="Required Field" width="7" height="14" />
</jato:content>
</label>
<div class="radios">
<jato:tiledView name="tiledChoices" type="com.sun.identity.authentication.UI.CallBackChoiceTiledView">
<jato:content name="selectedChoice">
<input type="radio" name="IDToken<jato:text name="txtParentIndex" />" id="IDToken<jato:text name="txtIndex" />" value="<jato:text name="txtIndex" />" checked="checked" />
<label for="IDToken<jato:text name="txtIndex" />">
<jato:text name="txtChoice" />
</label>
</jato:content>
<jato:content name="unselectedChoice">
<input type="radio" name="IDToken<jato:text name="txtParentIndex" />" id="IDToken<jato:text name="txtIndex" />" value="<jato:text name="txtIndex" />" />
<label for="IDToken<jato:text name="txtIndex" />">
<jato:text name="txtChoice" />
</label>
</jato:content>
</jato:tiledView>
</div>
</div>
</form>
</jato:content>
</jato:tiledView>
<jato:content name="ContentStaticTextResult">
<!-- after login output message -->
<p><b><jato:getDisplayFieldValue name='StaticTextResult'
defaultValue='' fireDisplayEvents='true' escape='false'/></b></p>
</jato:content>
<jato:content name="ContentHref">
<!-- URL back to Login page -->
<p><auth:href name="LoginURL" fireDisplayEvents='true'>
<jato:text name="txtGotoLoginAfterFail" /></auth:href></p>
</jato:content>
<jato:content name="ContentImage">
<!-- customized image defined in properties file -->
<p><img name="IDImage" src="<jato:getDisplayFieldValue name='Image'/>" alt=""/></p>
</jato:content>
<jato:content name="ContentButtonLogin">
<fieldset>
<jato:content name="hasButton">
<div class="row">
<jato:tiledView name="tiledButtons"
type="com.sun.identity.authentication.UI.ButtonTiledView">
<input name="Login.Submit" type="button" onclick="LoginSubmit('<jato:text name="txtButton" />'); return false;" class="button" value="<jato:text name="txtButton" />" />
</jato:tiledView>
</div>
<script language="javascript" type="text/javascript">
<!--
defaultBtn = '<jato:text name="defaultBtn" />';
var inputs = document.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i ++) {
if (inputs[i].type == 'button' && inputs[i].value == defaultBtn) {
inputs[i].setAttribute("class", "button primary");;
break;
}
}
-->
</script>
</jato:content>
<jato:content name="hasNoButton">
<div class="row">
<input name="Login.Submit" type="submit" onclick="LoginSubmit('<jato:text name="cmdSubmit" />'); return false;" class="button primary" value="<jato:text name="lblSubmit" />" />
<input name="Login.Submit" type="submit" onclick="LoginSubmit('<jato:text name="cmdNewUser" />'); return false;" class="button" value="<jato:text name="lblNewUser" />" />
</div>
</jato:content>
</fieldset>
</jato:content>
<auth:form name="Login" method="post" defaultCommandChild="DefaultLoginURL">
<script language="javascript" type="text/javascript">
<!--
if (elmCount != null) {
for (var i = 0; i < elmCount; i++) {
document.write(
"<input name=\"IDToken" + i + "\" type=\"hidden\">");
}
document.write("<input name=\"IDButton" + "\" type=\"hidden\">");
}
-->
</script>
<input type="hidden" name="goto" value="<%= ESAPI.encoder().encodeForHTMLAttribute(gotoURL) %>"/>
<input type="hidden" name="encoded" value="<%= encoded %>"/>
</auth:form>
</jato:content>
</div>
</div>
</div>
<div class="footer alt-color">
<div class="grid_6 suffix_3">
<p><auth:resBundle bundleName="amAuthUI" resourceKey="copyright.notice" /></p>
</div>
</div>
</div>
</body>
</jato:useViewBean>
</html>