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

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.EmployeeInfoBean;
  8. public class PresentPersonalHealthCareInfo_jsp extends HttpJspBase {
  9.  int employeeID; 
  10.   private static java.util.Vector _jspx_includes;
  11.   public java.util.List getIncludes() {
  12.     return _jspx_includes;
  13.   }
  14.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  15.         throws java.io.IOException, ServletException {
  16.     JspFactory _jspxFactory = null;
  17.     javax.servlet.jsp.PageContext pageContext = null;
  18.     HttpSession session = null;
  19.     ServletContext application = null;
  20.     ServletConfig config = null;
  21.     JspWriter out = null;
  22.     Object page = this;
  23.     JspWriter _jspx_out = null;
  24.     try {
  25.       _jspxFactory = JspFactory.getDefaultFactory();
  26.       response.setContentType("text/html; charset=GBK");
  27.       pageContext = _jspxFactory.getPageContext(this, request, response,
  28.        null, true, 8192, true);
  29.       application = pageContext.getServletContext();
  30.       config = pageContext.getServletConfig();
  31.       session = pageContext.getSession();
  32.       out = pageContext.getOut();
  33.       _jspx_out = out;
  34.       out.write("rn");
  35.       out.write("<HTML>rn");
  36.       out.write("<HEAD>");
  37.       out.write("<TITLE>Your Health Care Information");
  38.       out.write("</TITLE>");
  39.       out.write("</HEAD>rn");
  40.       out.write("<BODY>rnrn");
  41.       out.write("rn");
  42.       out.write("rn");
  43.       out.write("rnrn");
  44.       out.write("<H1 ALIGN="center">Your Health Care Plans");
  45.       out.write("</H1>rnrn");
  46.       out.write("<TABLE WIDTH="100%" BORDER="1">rn");
  47.    EmployeeInfoBean beanObj1=new EmployeeInfoBean();
  48.    employeeID = Integer.valueOf(request.getParameter("id")).intValue();
  49. //   employeeID = request.getParameter("id");
  50.    ResultSet rs=beanObj1.queryPenPolicy(employeeID);
  51.    rs.next();
  52.       out.write("rn     ");
  53.       out.write("<TR>");
  54.       out.write("<TD ALIGN="right" WIDTH="50%">Employee Name:");
  55.       out.write("</TD>");
  56.       out.write("<TD WIDTH="50%">");
  57.       out.print( rs.getString("NAME") );
  58.       out.write("</TD>");
  59.       out.write("</TR>rn     ");
  60.       out.write("<TR>");
  61.       out.write("<TD ALIGN="right" WIDTH="50%">Health Care Plan:");
  62.       out.write("</TD>");
  63.       out.write("<TD WIDTH="50%">");
  64.       out.print( rs.getString("HEALTHCAREPLAN") );
  65.       out.write("</TD>");
  66.       out.write("</TR>rn     ");
  67.       out.write("<TR>");
  68.       out.write("<TD ALIGN="right" WIDTH="50%">Dental Plan:");
  69.       out.write("</TD>");
  70.       out.write("<TD WIDTH="50%">");
  71.       out.print( rs.getString("DENTALPLAN") );
  72.       out.write("</TD>");
  73.       out.write("</TR>rn     ");
  74.       out.write("<TR>");
  75.       out.write("<TD ALIGN="right" WIDTH="50%">Vision Plan:");
  76.       out.write("</TD>");
  77.       out.write("<TD WIDTH="50%">");
  78.       out.print( rs.getString("VISIONPLAN") );
  79.       out.write("</TD>");
  80.       out.write("</TR>rnrn");
  81.       out.write("</TABLE>rnrn");
  82.       out.write("<BR>rnrn");
  83.       out.write("</BODY>rn");
  84.       out.write("</HTML>");
  85.     } catch (Throwable t) {
  86.       out = _jspx_out;
  87.       if (out != null && out.getBufferSize() != 0)
  88.         out.clearBuffer();
  89.       if (pageContext != null) pageContext.handlePageException(t);
  90.     } finally {
  91.       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  92.     }
  93.   }
  94. }