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

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