PresentCompanyPolicies_jsp.java
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:6k
源码类别:

Java编程

开发平台:

Java

  1. package org.apache.jsp;
  2. import javax.servlet.*;
  3. import javax.servlet.http.*;
  4. import javax.servlet.jsp.*;
  5. import org.apache.jasper.runtime.*;
  6. import java.sql.*;
  7. import humanresource.*;
  8. public class PresentCompanyPolicies_jsp extends HttpJspBase {
  9.   private static java.util.Vector _jspx_includes;
  10.   static {
  11.     _jspx_includes = new java.util.Vector(2);
  12.     _jspx_includes.add("/CompanyBanner.html");
  13.     _jspx_includes.add("/SiteNavigator.html");
  14.   }
  15.   public java.util.List getIncludes() {
  16.     return _jspx_includes;
  17.   }
  18.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  19.         throws java.io.IOException, ServletException {
  20.     JspFactory _jspxFactory = null;
  21.     javax.servlet.jsp.PageContext pageContext = null;
  22.     HttpSession session = null;
  23.     ServletContext application = null;
  24.     ServletConfig config = null;
  25.     JspWriter out = null;
  26.     Object page = this;
  27.     JspWriter _jspx_out = null;
  28.     try {
  29.       _jspxFactory = JspFactory.getDefaultFactory();
  30.       response.setContentType("text/html; charset=GBK");
  31.       pageContext = _jspxFactory.getPageContext(this, request, response,
  32.        null, true, 8192, true);
  33.       application = pageContext.getServletContext();
  34.       config = pageContext.getServletConfig();
  35.       session = pageContext.getSession();
  36.       out = pageContext.getOut();
  37.       _jspx_out = out;
  38.       out.write("rn");
  39.       out.write("<HTML>rn");
  40.       out.write("<HEAD>");
  41.       out.write("<TITLE>Company Policies");
  42.       out.write("</TITLE>");
  43.       out.write("</HEAD>rn");
  44.       out.write("<BODY>rnrn");
  45.       out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n  ");
  46.       out.write("<TR ALIGN="center">n    ");
  47.       out.write("<TD>");
  48.       out.write("<FONT SIZE="7" COLOR="yellow">Husky World");
  49.       out.write("</FONT>");
  50.       out.write("</TD>n  ");
  51.       out.write("</TR>n");
  52.       out.write("</TABLE>");
  53.       out.write("rn");
  54.       out.write("rn");
  55.       out.write("rnrn");
  56.       out.write("<CENTER>rn  ");
  57.       out.write("<FONT SIZE="5" COLOR="navy">rn    Company Policiesrn  ");
  58.       out.write("</FONT>rn");
  59.       out.write("</CENTER>rnrn");
  60.       out.write("<!-- Company policy -->rn");
  61.       out.write("<FONT SIZE="4">rn  Our number one company policy at Husky World is torn  be nice to your fellow co-workers. And always be nicern  to doggies.rn");
  62.       out.write("</FONT>rnrn");
  63.       out.write("<BR>rnrn");
  64.       out.write("<CENTER>rn  ");
  65.       out.write("<FONT SIZE="5" COLOR="navy">rn    Health, Vision, And Dental Plansrn  ");
  66.       out.write("</FONT>rn");
  67.       out.write("</CENTER>rnrn");
  68.       out.write("<TABLE WIDTH="100%" BORDER="1">rn  ");
  69.       out.write("<TH WIDTH="40%">Plan Name");
  70.       out.write("</TH>rn  ");
  71.       out.write("<TH WIDTH="20%">Deductible");
  72.       out.write("</TH>rn  ");
  73.       out.write("<TH WIDTH="20%">Coverage for Doctors in Plan");
  74.       out.write("</TH>rn  ");
  75.       out.write("<TH WIDTH="20%">Coverage for Doctors out of Plan");
  76.       out.write("</TH>rn");
  77.   EmployeeInfoBean beanObj=new EmployeeInfoBean();
  78.   ResultSet rs1=beanObj.queryComPolicy();
  79.   while (rs1.next()){
  80.       out.write("rn  ");
  81.       out.write("<TR>");
  82.       out.write("<TD>");
  83.       out.print( rs1.getString("PLANNAME") );
  84.       out.write("</TD>rn      ");
  85.       out.write("<TD>");
  86.       out.print( rs1.getString("DEDUCTIBLE") );
  87.       out.write("</TD>rn      ");
  88.       out.write("<TD>");
  89.       out.print( rs1.getString("PlanCoverage1") );
  90.       out.write("</TD>rn      ");
  91.       out.write("<TD>");
  92.       out.print( rs1.getString("PlanCoverage2") );
  93.       out.write("</TD>rn  ");
  94.       out.write("</TR>rn");
  95.  } //end while loop
  96. /*   if (statement != null)
  97.      statement.close();
  98.    if (conn != null)
  99.      conn.close();*/
  100.       out.write("rn");
  101.       out.write("</TABLE>rnrn");
  102.       out.write("<BR>rnrn");
  103.       out.write("<BODY ALINK="yellow" VLINK="yellow" LINK="yellow">n");
  104.       out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n  ");
  105.       out.write("<TR ALIGN="center">n    ");
  106.       out.write("<TD COLSPAN=2>");
  107.       out.write("<FONT SIZE="4" COLOR="yellow">Site Navigator");
  108.       out.write("</FONT>");
  109.       out.write("</TD>n  ");
  110.       out.write("</TR>n  ");
  111.       out.write("<TR ALIGN="center">n    ");
  112.       out.write("<TD>");
  113.       out.write("<A HREF="PresentCompanyPolicies.jsp">n         Look at Company Policies");
  114.       out.write("</A>n    ");
  115.       out.write("</TD>n    ");
  116.       out.write("<TD>");
  117.       out.write("<A HREF="PersonalInfo.html">n         Look At Personal Information");
  118.       out.write("</A>n    ");
  119.       out.write("</TD>n  ");
  120.       out.write("</TR>n  ");
  121.       out.write("<TR ALIGN="center">n    ");
  122.       out.write("<TD>");
  123.       out.write("<A HREF="InputEmployeeInfo.html">n        Change Employee Information");
  124.       out.write("</A>");
  125.       out.write("</FONT>n    ");
  126.       out.write("</TD>n    ");
  127.       out.write("<TD>");
  128.       out.write("<A HREF="PresentCompanyHealthCareInfo.jsp">n        Look At Health Care Options");
  129.       out.write("</A>n    ");
  130.       out.write("</TD>n  ");
  131.       out.write("</TR>n  ");
  132.       out.write("<TR ALIGN="center">n    ");
  133.       out.write("<TD COLSPAN="2">");
  134.       out.write("<A HREF="HumanResources.html">n                    Home Page");
  135.       out.write("</A>n    ");
  136.       out.write("</TD>n  ");
  137.       out.write("</TR>n");
  138.       out.write("</TABLE>n");
  139.       out.write("</BODY>");
  140.       out.write("rn");
  141.       out.write("</BODY>rn");
  142.       out.write("</HTML>");
  143.     } catch (Throwable t) {
  144.       out = _jspx_out;
  145.       if (out != null && out.getBufferSize() != 0)
  146.         out.clearBuffer();
  147.       if (pageContext != null) pageContext.handlePageException(t);
  148.     } finally {
  149.       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  150.     }
  151.   }
  152. }