package org.eclipse.wst.ws.explorer.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.eclipse.wst.ws.internal.explorer.platform.perspective.*;
import org.eclipse.wst.ws.internal.explorer.platform.constants.*;

public final class calendar_005ftoolbar_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;


/*******************************************************************************
 * Copyright (c) 2001, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

      out.write('\n');
      out.write('\n');
      out.write('\n');

   String sessionId = request.getParameter(ActionInputs.SESSIONID);
   HttpSession currentSession = (HttpSession)application.getAttribute(sessionId);
   Controller controller = (Controller)currentSession.getAttribute("controller");

      out.write("\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<html lang=\"");
      out.print(response.getLocale().getLanguage());
      out.write("\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n  <title>");
      out.print(controller.getMessage("FRAME_TITLE_CALENDAR_TOOLBAR"));
      out.write("</title>\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(response.encodeURL(controller.getPathWithContext("css/toolbar.css")));
      out.write("\">\n</head>\n<body dir=\"");
      out.print(org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir());
      out.write("\" onUnload=\"top.opener.calendarBrowserClosed=true\" class=\"toolbarbodymargin\">\n<div id=\"toolbarborder\">\n  <div id=\"toolbar\">\n    <table width=\"100%\" height=25 cellpadding=0 cellspacing=0 border=0>\n      <tr>\n        <td valign=\"middle\" align=\"center\" width=25 height=25><img class=\"normal\" src=\"");
      out.print(response.encodeURL(controller.getPathWithContext("images/calendar.gif")));
      out.write("\" alt=\"\" width=16 height=16></td>\n        <td valign=\"middle\" align=\"left\" width=\"*\" height=25 nowrap class=\"text\">");
      out.print(controller.getMessage("ALT_CALENDAR_BROWSER"));
      out.write("</td>\n      </tr>\n    </table>\n  </div>\n</div>\n<script language=\"javascript\">\n  top.opener.calendarBrowserClosed = false;\n</script>\n</body>\n</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
