PresentCompanyPolicies_jsp.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:6k
源码类别:
Java编程
开发平台:
Java
- package org.apache.jsp;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- import java.sql.*;
- import humanresource.*;
- public class PresentCompanyPolicies_jsp extends HttpJspBase {
- private static java.util.Vector _jspx_includes;
- static {
- _jspx_includes = new java.util.Vector(2);
- _jspx_includes.add("/CompanyBanner.html");
- _jspx_includes.add("/SiteNavigator.html");
- }
- public java.util.List getIncludes() {
- return _jspx_includes;
- }
- public void _jspService(HttpServletRequest request, HttpServletResponse response)
- throws java.io.IOException, ServletException {
- JspFactory _jspxFactory = null;
- javax.servlet.jsp.PageContext pageContext = null;
- HttpSession session = null;
- ServletContext application = null;
- ServletConfig config = null;
- JspWriter out = null;
- Object page = this;
- JspWriter _jspx_out = null;
- try {
- _jspxFactory = JspFactory.getDefaultFactory();
- response.setContentType("text/html; charset=GBK");
- pageContext = _jspxFactory.getPageContext(this, request, response,
- null, true, 8192, true);
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- _jspx_out = out;
- out.write("rn");
- out.write("<HTML>rn");
- out.write("<HEAD>");
- out.write("<TITLE>Company Policies");
- out.write("</TITLE>");
- out.write("</HEAD>rn");
- out.write("<BODY>rnrn");
- out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n ");
- out.write("<TR ALIGN="center">n ");
- out.write("<TD>");
- out.write("<FONT SIZE="7" COLOR="yellow">Husky World");
- out.write("</FONT>");
- out.write("</TD>n ");
- out.write("</TR>n");
- out.write("</TABLE>");
- out.write("rn");
- out.write("rn");
- out.write("rnrn");
- out.write("<CENTER>rn ");
- out.write("<FONT SIZE="5" COLOR="navy">rn Company Policiesrn ");
- out.write("</FONT>rn");
- out.write("</CENTER>rnrn");
- out.write("<!-- Company policy -->rn");
- 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");
- out.write("</FONT>rnrn");
- out.write("<BR>rnrn");
- out.write("<CENTER>rn ");
- out.write("<FONT SIZE="5" COLOR="navy">rn Health, Vision, And Dental Plansrn ");
- out.write("</FONT>rn");
- out.write("</CENTER>rnrn");
- out.write("<TABLE WIDTH="100%" BORDER="1">rn ");
- out.write("<TH WIDTH="40%">Plan Name");
- out.write("</TH>rn ");
- out.write("<TH WIDTH="20%">Deductible");
- out.write("</TH>rn ");
- out.write("<TH WIDTH="20%">Coverage for Doctors in Plan");
- out.write("</TH>rn ");
- out.write("<TH WIDTH="20%">Coverage for Doctors out of Plan");
- out.write("</TH>rn");
- EmployeeInfoBean beanObj=new EmployeeInfoBean();
- ResultSet rs1=beanObj.queryComPolicy();
- while (rs1.next()){
- out.write("rn ");
- out.write("<TR>");
- out.write("<TD>");
- out.print( rs1.getString("PLANNAME") );
- out.write("</TD>rn ");
- out.write("<TD>");
- out.print( rs1.getString("DEDUCTIBLE") );
- out.write("</TD>rn ");
- out.write("<TD>");
- out.print( rs1.getString("PlanCoverage1") );
- out.write("</TD>rn ");
- out.write("<TD>");
- out.print( rs1.getString("PlanCoverage2") );
- out.write("</TD>rn ");
- out.write("</TR>rn");
- } //end while loop
- /* if (statement != null)
- statement.close();
- if (conn != null)
- conn.close();*/
- out.write("rn");
- out.write("</TABLE>rnrn");
- out.write("<BR>rnrn");
- out.write("<BODY ALINK="yellow" VLINK="yellow" LINK="yellow">n");
- out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n ");
- out.write("<TR ALIGN="center">n ");
- out.write("<TD COLSPAN=2>");
- out.write("<FONT SIZE="4" COLOR="yellow">Site Navigator");
- out.write("</FONT>");
- out.write("</TD>n ");
- out.write("</TR>n ");
- out.write("<TR ALIGN="center">n ");
- out.write("<TD>");
- out.write("<A HREF="PresentCompanyPolicies.jsp">n Look at Company Policies");
- out.write("</A>n ");
- out.write("</TD>n ");
- out.write("<TD>");
- out.write("<A HREF="PersonalInfo.html">n Look At Personal Information");
- out.write("</A>n ");
- out.write("</TD>n ");
- out.write("</TR>n ");
- out.write("<TR ALIGN="center">n ");
- out.write("<TD>");
- out.write("<A HREF="InputEmployeeInfo.html">n Change Employee Information");
- out.write("</A>");
- out.write("</FONT>n ");
- out.write("</TD>n ");
- out.write("<TD>");
- out.write("<A HREF="PresentCompanyHealthCareInfo.jsp">n Look At Health Care Options");
- out.write("</A>n ");
- out.write("</TD>n ");
- out.write("</TR>n ");
- out.write("<TR ALIGN="center">n ");
- out.write("<TD COLSPAN="2">");
- out.write("<A HREF="HumanResources.html">n Home Page");
- out.write("</A>n ");
- out.write("</TD>n ");
- out.write("</TR>n");
- out.write("</TABLE>n");
- out.write("</BODY>");
- out.write("rn");
- out.write("</BODY>rn");
- out.write("</HTML>");
- } catch (Throwable t) {
- out = _jspx_out;
- if (out != null && out.getBufferSize() != 0)
- out.clearBuffer();
- if (pageContext != null) pageContext.handlePageException(t);
- } finally {
- if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
- }
- }
- }