How to provide your own customized WAYF page

It is annoying to have a such long list in InCommon, but your users are limited to just several schools. Here is my solution:

1. Install apache-tomcat server on port 7080, the same machine runs SP but in
different port.

2. change wayfURL in SessionInitiator


The following is a sample index.jsp I am using:

   String timeInMillis = ""+System.currentTimeMillis();
<center> <h1>University of California Grid Virtual Desktop</h1>
    <div class="selector">
        <div class="list">
            <h2>Which campus are you from: </h2>
            <form method="get" action="">
                    <input type="hidden" name="shire" value="https://youdomain/Shibboleth.sso/SAML/POST" />
                    <input type="hidden" name="target" value="cookie" />
                    <input type="hidden" name="providerId" value="https://yourdomain/incommon" />
                    <input type="hidden" name="time" value="<%=timeInMillis%>" />
                    <input type="hidden" name="action" value="selection" />
                    <select name="origin">
                            <option value="">
                                        University of California - Office of the President
                            <option value="">
                                        University of California, Berkeley
                            <option value="">
                                        University of California, Davis
                            <option value="">
                                        University of California, Merced
                            <option value="">
                                        University of California, Riverside
                            <option value="">
                                        University of California-Irvine
                            <option value="">
                                        University of California-Los Angeles
                            <option value="">
                                        University of California-San Diego
                    <input type="submit" value="Select" />
                    <select name="cache">
                        <option value="false" selected> Do not remember
                        <option value="session"> Remember for session
                        <option value="perm"> Remember for a week