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

Java编程

开发平台:

Java

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