<!-- clock2.jsp                        -->
<!-- date and time to include in another document via redirection -->

<meta http-equiv = "refresh" content = "10" />
<table>
   <tr>
      <td class="big"; style = "background-color: black;">
         <p  style = "color: cyan; font-size: 1em; 
            font-weight: bold;">
             
            <%-- script to determine client local and --%>
            <%-- format date accordingly              --%>
            <% 
               // get client locale
               java.util.Locale locale = request.getLocale();

               // get DateFormat for client's Locale
               java.text.DateFormat dateFormat = 
                  java.text.DateFormat.getDateTimeInstance(
                     java.text.DateFormat.LONG,
                     java.text.DateFormat.LONG, locale );

            %>  <%-- end script --%>

            <%-- output date --%>
            <%= dateFormat.format( new java.util.Date() ) %>
         </p> 
      </td>
   </tr>
</table>


