PresentCompanyHealthCareInfo_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.EmployeeInfoBean;
  7. public class PresentCompanyHealthCareInfo_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>Health Plan Information");
  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    Health, Vision, And Dental Plansrn  ");
  57.       out.write("</FONT>rn");
  58.       out.write("</CENTER>rnrn");
  59.       out.write("<TABLE WIDTH="100%" BORDER="1">rn  ");
  60.       out.write("<TH WIDTH="40%">Plan Name");
  61.       out.write("</TH>rn  ");
  62.       out.write("<TH WIDTH="20%">Deductible");
  63.       out.write("</TH>rn  ");
  64.       out.write("<TH WIDTH="20%">Coverage for Doctors in Plan");
  65.       out.write("</TH>rn  ");
  66.       out.write("<TH WIDTH="20%">Coverage for Doctors out of Plan");
  67.       out.write("</TH>rn");
  68.  /* Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();
  69.   Connection conn =
  70.     DriverManager.getConnection("jdbc:cloudscape:c:\HumanResourcesDB");
  71.   Statement statement = conn.createStatement();
  72.   String sql = "SELECT * FROM BENEFITINFO";*/
  73.   EmployeeInfoBean beanObj1=new EmployeeInfoBean();
  74.   ResultSet rs = beanObj1.queryComPolicy();
  75.   while (rs.next()) {
  76.       out.write("rn  ");
  77.       out.write("<TR>");
  78.       out.write("<TD>");
  79.       out.print( rs.getString("PLANNAME") );
  80.       out.write("</TD>rn      ");
  81.       out.write("<TD ALIGN="center">");
  82.       out.print( rs.getString("DEDUCTIBLE") );
  83.       out.write("</TD>rn      ");
  84.       out.write("<TD ALIGN="center">");
  85.       out.print( rs.getString("PlanCoverage1") );
  86.       out.write("</TD>rn      ");
  87.       out.write("<TD ALIGN="center">");
  88.       out.print( rs.getString("PlanCoverage2") );
  89.       out.write("</TD>rn  ");
  90.       out.write("</TR>rn");
  91.  } //end while loop
  92.    /*if (statement != null)
  93.      statement.close();
  94.    if (conn != null)
  95.      conn.close();*/
  96.       out.write("rn");
  97.       out.write("</TABLE>rn");
  98.       out.write("<BR>rn");
  99.       out.write("<BODY ALINK="yellow" VLINK="yellow" LINK="yellow">n");
  100.       out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n  ");
  101.       out.write("<TR ALIGN="center">n    ");
  102.       out.write("<TD COLSPAN=2>");
  103.       out.write("<FONT SIZE="4" COLOR="yellow">Site Navigator");
  104.       out.write("</FONT>");
  105.       out.write("</TD>n  ");
  106.       out.write("</TR>n  ");
  107.       out.write("<TR ALIGN="center">n    ");
  108.       out.write("<TD>");
  109.       out.write("<A HREF="PresentCompanyPolicies.jsp">n         Look at Company Policies");
  110.       out.write("</A>n    ");
  111.       out.write("</TD>n    ");
  112.       out.write("<TD>");
  113.       out.write("<A HREF="PersonalInfo.html">n         Look At Personal Information");
  114.       out.write("</A>n    ");
  115.       out.write("</TD>n  ");
  116.       out.write("</TR>n  ");
  117.       out.write("<TR ALIGN="center">n    ");
  118.       out.write("<TD>");
  119.       out.write("<A HREF="InputEmployeeInfo.html">n        Change Employee Information");
  120.       out.write("</A>");
  121.       out.write("</FONT>n    ");
  122.       out.write("</TD>n    ");
  123.       out.write("<TD>");
  124.       out.write("<A HREF="PresentCompanyHealthCareInfo.jsp">n        Look At Health Care Options");
  125.       out.write("</A>n    ");
  126.       out.write("</TD>n  ");
  127.       out.write("</TR>n  ");
  128.       out.write("<TR ALIGN="center">n    ");
  129.       out.write("<TD COLSPAN="2">");
  130.       out.write("<A HREF="HumanResources.html">n                    Home Page");
  131.       out.write("</A>n    ");
  132.       out.write("</TD>n  ");
  133.       out.write("</TR>n");
  134.       out.write("</TABLE>n");
  135.       out.write("</BODY>");
  136.       out.write("rn");
  137.       out.write("</BODY>rn");
  138.       out.write("</HTML>");
  139.     } catch (Throwable t) {
  140.       out = _jspx_out;
  141.       if (out != null && out.getBufferSize() != 0)
  142.         out.clearBuffer();
  143.       if (pageContext != null) pageContext.handlePageException(t);
  144.     } finally {
  145.       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  146.     }
  147.   }
  148. }