001    package jsp.dates;
002    
003    import javax.servlet.*;
004    import javax.servlet.http.*;
005    import javax.servlet.jsp.*;
006    
007    public final class date_jsp extends org.apache.jasper.runtime.HttpJspBase
008        implements org.apache.jasper.runtime.JspSourceDependent {
009    
010      private static java.util.List _jspx_dependants;
011    
012      public Object getDependants() {
013        return _jspx_dependants;
014      }
015    
016      public void _jspService(HttpServletRequest request, HttpServletResponse response)
017            throws java.io.IOException, ServletException {
018    
019        JspFactory _jspxFactory = null;
020        PageContext pageContext = null;
021        ServletContext application = null;
022        ServletConfig config = null;
023        JspWriter out = null;
024        Object page = this;
025        JspWriter _jspx_out = null;
026        PageContext _jspx_page_context = null;
027    
028    
029        try {
030          _jspxFactory = JspFactory.getDefaultFactory();
031          response.setContentType("text/html");
032          pageContext = _jspxFactory.getPageContext(this, request, response,
033                            null, false, 8192, true);
034          _jspx_page_context = pageContext;
035          application = pageContext.getServletContext();
036          config = pageContext.getServletConfig();
037          out = pageContext.getOut();
038          _jspx_out = out;
039    
040          out.write("<html>\n<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n  contributor license agreements.  See the NOTICE file distributed with\n  this work for additional information regarding copyright ownership.\n  The ASF licenses this file to You under the Apache License, Version 2.0\n  (the \"License\"); you may not use this file except in compliance with\n  the License.  You may obtain a copy of the License at\n\n      http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n-->\n\n\n\n<body bgcolor=\"white\">\n");
041          dates.JspCalendar clock = null;
042          synchronized (_jspx_page_context) {
043            clock = (dates.JspCalendar) _jspx_page_context.getAttribute("clock", PageContext.PAGE_SCOPE);
044            if (clock == null){
045              clock = new dates.JspCalendar();
046              _jspx_page_context.setAttribute("clock", clock, PageContext.PAGE_SCOPE);
047            }
048          }
049          out.write("\n\n<font size=4>\n<ul>\n<li>\tDay of month: is  ");
050          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getDayOfMonth())));
051          out.write("\n<li>\tYear: is  ");
052          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getYear())));
053          out.write("\n<li>\tMonth: is  ");
054          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getMonth())));
055          out.write("\n<li>\tTime: is  ");
056          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getTime())));
057          out.write("\n<li>\tDate: is  ");
058          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getDate())));
059          out.write("\n<li>\tDay: is  ");
060          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getDay())));
061          out.write("\n<li>\tDay Of Year: is  ");
062          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getDayOfYear())));
063          out.write("\n<li>\tWeek Of Year: is  ");
064          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getWeekOfYear())));
065          out.write("\n<li>\tera: is  ");
066          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getEra())));
067          out.write("\n<li>\tDST Offset: is  ");
068          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getDSTOffset())));
069          out.write("\n<li>\tZone Offset: is  ");
070          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((dates.JspCalendar)_jspx_page_context.findAttribute("clock")).getZoneOffset())));
071          out.write("\n</ul>\n</font>\n\n</body>\n</html>\n");
072        } catch (Throwable t) {
073          if (!(t instanceof SkipPageException)){
074            out = _jspx_out;
075            if (out != null && out.getBufferSize() != 0)
076              out.clearBuffer();
077            if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
078          }
079        } finally {
080          if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
081        }
082      }
083    }