⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employeeright_jsp.java

📁 l劳动力管理系统
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import com.hr.vo.Employee;

public class employeeright_jsp extends HttpJspBase {


String name;
String gender;
int age;
String deptname;
String note;
String position;
Employee employee;


  private static java.util.Vector _jspx_includes;

  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("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n ");
      out.write("<link rel=\"STYLESHEET\" type=\"text/css\" href=\"css/shared.css\">\r\n");
      out.write("<title>\r\nemployeeright\r\n");
      out.write("</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");
      out.write("\r\n");

 session = request.getSession(false);
if(session!=null)
{
   employee = (Employee)session.getAttribute("pass");
   if(employee!=null)
   {
	name =  employee.getEmployeeName();
	gender = employee.getGender();
	age = employee.getAge().intValue();
  	deptname = employee.getDept().getDeptName() ;
 	note = employee.getNote();
        int type = employee.getEmployeeType().intValue();
	switch(type)
        {
          case 1:
            position = "初级职称" ;
		break;
	  case 2:
		position="中级职称";
		break;
          case 3:
		position="高级职称";
		break;
          default:
		position="--";
         }
   }else
   {
     int i=1/0;
   }

}

      out.write("\r\n");
      out.write("<h3 align=\"center\">\r\n员工基本信息\r\n");
      out.write("</h3>\r\n");
      out.write("<br>\r\n");
      out.write("<hr height=1 />\r\n");
      out.write("<table width=100%>\r\n");
      out.write("<tbody >\r\n");
      out.write("<tr>\r\n");
      out.write("<td class=\"tdbg1\" width=15%>员工姓名:");
      out.write("</td>");
      out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
      out.print(name);
      out.write("</td>\r\n");
      out.write("<td class=\"tdbg1\" width=15%>员工性别:");
      out.write("</td>");
      out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
      out.print(gender);
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<td class=\"tdbg1\" width=15%>员工年龄:");
      out.write("</td>");
      out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
      out.print(age);
      out.write("</td>\r\n");
      out.write("<td class=\"tdbg1\" width=15%>所属部门:");
      out.write("</td>");
      out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
      out.print(deptname);
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<td class=\"tdbg1\" width=15%>员工职称:");
      out.write("</td>");
      out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
      out.print(position);
      out.write("</td>\r\n");
      out.write("<td class=\"tdbg1\" width=15%>员工备注:");
      out.write("</td>");
      out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
      out.print(note);
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</tbody>\r\n");
      out.write("</table>\r\n");
      out.write("<hr height=1 />\r\n\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } 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);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -